Conversation

Jpeg error #53

(overview of excerpts from articles in conversation)

Newsgroup: borland.public.delphi.graphics

# Lines
wrote on 15-Aug-2006:

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);
var
MemStrm: TMemoryStream;
49
  
Dennis Passmore replied on 15-Aug-2006:

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.
  Dennis Passmore
10
    
Igor Raskin replied on 15-Aug-2006:

"Dennis Passmore" wrote in message
    news:✉4ax.com...
    (snip)

Table1 is his dataset, Foto is the field.
    Igor
    
16
  
Igor Raskin replied on 15-Aug-2006:

"Marcio dalmolin" <✉navebrazil.com.br> wrote in message
  news:✉newsgroups.borland.com...
  (snip)

Try saving the content of MemStrm to file and see if that file is a valid
  jpeg.
  Igor
50
  
Warrick Wilson replied on 16-Aug-2006:

"Marcio dalmolin" <✉navebrazil.com.br> wrote in message
  news:✉newsgroups.borland.com...
  (snip)

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
14
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Thu, 19 Sep 2024 01:42:18 UTC
Copyright © 2009-2024
HREF Tools Corp.