Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 7th, 2006, 07:44 AM
Authorized User
 
Join Date: Jan 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to creative_eye
Default Image displaying problem

I'm working on a scenario which is something like this:
I enter some patient information in the form and then select an image from the folder. Then save the form, till this its going fine.
The problem arise in the View, when i need to show the report.
Suppose when i click on "view" button to view that form, some times program give error "invalid pic". This problem doesnt' arise everytime, say if i have 10 pics in the folder. it'll give error when the pic10 is going to view on report. where as pic 9 is working fine and so on. All the img dimensions are equal and all are jpegs.
I'm using "AppendChunk".

If Not Len(strImage(1)) = 0 Then
        Open strImage(1) For Binary As #1 ' Open file for input.
        byteChunk = InputB(LOF(1), #1)
        Close #1
        rst3.Fields("ImgAdvice").AppendChunk byteChunk
    Else
        rst3.Fields("ImgAdvice") = ""
    End If






Similar Threads
Thread Thread Starter Forum Replies Last Post
Image not displaying shoakat ASP.NET 2.0 Professional 2 June 22nd, 2007 10:02 AM
Displaying a image in asp dhillon555 ASP.NET 1.0 and 1.1 Basics 0 February 18th, 2007 10:16 PM
Problem in displaying image in report hthakkar BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 March 1st, 2006 10:26 PM
Problem with displaying image on the report hthakkar Reporting Services 0 March 1st, 2006 09:48 AM
displaying an image from file stream into an image sanjeet ADO.NET 0 September 23rd, 2005 10:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.