Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BLOB (Image) no displaying

Status
Not open for further replies.

CrystalGuru2005

Programmer
Aug 9, 2005
16
CA
I am using SQL Server 2k, CR 10, and have a field (image data type). I am trying to display it in Crystal report but always get empty or blank image. What i am missing ?

Thanks
 
What type of datbase? What type of image? .gif? bmp? I would try several different formats as I know that not all of them work well with crystal.

What are you seeing instead of the image? Blank space?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
I am using
1. MS SQL Server 2000
2. table with a column has data type (image)
3. image: I tried jpeg, png, tiff
4. I see blank space

when I click field in Crystal report it recognize it as BLOB field but diplay blank.

Thanks
 
Also, my TSQL insert statement looks like (only one column with image data type)

insert into imagetable values ('C:\AK-Per\Pictures\HPIM1378.JPEG')

Just in case there is something wrong with sql statement.
 
Why do you have an insert statement? Aren't the images ALREADY in the database? Crystal is used to report against the database, not insert values into it.

Drag the blob database field (not a path to an image as you seem to indicate) onto the report canvas. Execute the report. What do you see?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
The INSERT statement is not part of Crystal report. I have run it seperately in query analyzer to have a table with images. When I drag the blob field in report canvas it shows blank field.

I don't know how can I make it more simple.

thanks
 
Hi,
From the Crystal docs regarding Images and SqlServer, it appears that the SqlServer BCP command has to be used to insert the image into the table...Don't know if that is an issue here, but thought it worth mentioning..Can you display the image from the database by any other means to be sure it is actually inserted correctly?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thanks all you guys, all I was missing the BCP utility to insert the image into the database. It works fine now, though it has certain limitations (image type and size)

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top