I'm trying to save a JPEG image in Delphi 3.0 to an Oracle LONG RAW
column. Currently, I do the following:
1. Acquire an image from a digital camera into a TPicture object (using
EnhTWAIN)
2. Use Delphi's JPEG unit to convert the TPicture to a JPEG
3. Assign the JPEG to the Picture property of a TDBImage control
4. Post to the database
I guess TDBImage.Picture does not support JPEGs, so my image does not
display in the TDBImage control, and nothing is saved to the database.
If I assign the original picture to the TDBImage, it is displayed and
saved to the database, but the file is ~10 times bigger than the JPEG
image would be. The original image is around 5MB, and the JPEG image is
around 500K. I will need to store hundreds of such images in the
database, so compression is a MUST. Can anyone provide any pointers as
to how I might accomplish this?
The process is flexible, but the compressed image MUST be a JPEG.
Thanks for any assistance you can provide.
Kaushal Sheth