Board index » delphi » Saving a JPEG image in a field
Phil Edwards
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Saving a JPEG image in a field
Does anyone know how to save a TJpeg image to (and recall it from) a
database? I have a Paradox table with a field named "Picture" of type binary. Is that a "Blob" field? I have an image in two forms: A TJpeg image displayed on the screen, and as a JPeg file. I need a way to save the JPEG image to the database and then recover it. I have tried to create a Blobstream to copy the image from the JPeg image to Stream2 := but I get a compiler error: Incompatible types: 'TBlobStream' and I tried to typecast the binary field, 'Picture' to type TBlobStream but that Does anyone know how to save a Jpeg image to a database field? Thanks |