Marcio dalmoli 2007-10-16 22:00:19
Please, does anybody know how to solve this error ? I’m trying to load a
jpeg image from Oracle table 8i.
procedure TForm1.Button1Click(Sender: TObject);
If Table1Foto.IsNull then
with Jpg do
When I execute, I always get error message ‘Jpeg error #53’. How do I
resolve it ?
Thanks for your time.
Dennis passmor 2007-10-16 22:00:32
Usally this is a simple out of memory error caused by a invalid jpeg image. In your case since you
are trying to save it from a table read from a Oracle table i would think that the problem is in
your Table1Foto.SaveToStream(MemStrm); code since you do not specify the field name but are
atempting to save the whole table to the stream which ends up not being a valid jpeg image.
“Think it might be a new experience and
if you can not Pull then at least Push
the job will get done”
Igor raskin 2007-10-16 22:00:35
Try saving the content of MemStrm to file and see if that file is a valid
Igor raskin 2007-10-20 13:26:01
Table1 is his dataset, Foto is the field.
Warrick wilson 2007-10-20 13:26:39
I think I got this error ages ago and it turned out that the JPEG was saved
as a CMYK format. The jpeg.pas that ships with Delphi 7 can’t handle that
format. There’s a jpegex.pas available on CodeCentral or BDN (the provider’s
name escapes me) that handles the format and solved my problem.
If you can get the image, you might look at it in IrfanView or some graphics
package that can tell you something about the format.