Hi
Images are displayed via a TPicture, so if the JPEG unit is added in the uses list, this TPicture class should be able to render JPEG.
OK, thanks I'll give that a go
Sorry to raise this again, but I've followed the above and still get the same error.
I'm using C++ Builder 2007 so I've included the JPEG.hpp file in my unit, but the control is still unhappy.
I guess there must be another issue then, i.e. the way you store the pictures in the database. Are you sure this is a binary blob? What database is this and how did you put these images in the database? Does a TDBAdvGrid display these images? Can you access the images directly by using the DBField?
Hi Bruno
I'm using NexusDB and the JPEGs are in their BLOB Graphic field type. The image data is stored into the database using the LoadFromStream function and the stream contains JPEG data provided by the ImageEn component library.
TDBAdvGrid displays them properly - I didn't have to tell TDBAdvGrid anything about the graphics type - I just dropped one on the form and set the DataSource and everything looked fine...
I do not have NexusDB installed here.
What is the value of TBlobField.BlobType for this specific field containing the JPEG?
It's a TGraphicField
And I've found if I change it to a normal BLOB/TBlobField everything works well :-)
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.