Board index » delphi » JPEG Error #42

JPEG Error #42

Anyone know what JPEG Error #42 - an EJPEG exception reported by
TJPEGImage - means?

I could find no reference to the error in question.

it happens here:
  Image2.Picture.Bitmap.Assign(jpg);

D7
Thanks
Brian

 

Re:JPEG Error #42


still don't know what error is - but seems to be due to invalid JPEG data in
stream...

Quote
"Brian Baley" <bba...@peak-power.net> wrote in message

news:3ea6e26b$1@newsgroups.borland.com...
Quote
> Anyone know what JPEG Error #42 - an EJPEG exception reported by
> TJPEGImage - means?

> I could find no reference to the error in question.

> it happens here:
>   Image2.Picture.Bitmap.Assign(jpg);

> D7
> Thanks
> Brian

Re:JPEG Error #42


Quote
Brian Baley wrote:

> Anyone know what JPEG Error #42 - an EJPEG exception reported by
> TJPEGImage - means?
> I could find no reference to the error in question.
> it happens here:
>   Image2.Picture.Bitmap.Assign(jpg);

JPEG Error #42 = JERR_INPUT_EOF: Premature end of input file

An error in the (original) JPG file?

--
Charles Hacker
Lecturer in Electronics and Computing
School of Engineering
Griffith University - Gold Coast
Australia

Re:JPEG Error #42


Quote
"Charles Hacker" <reply...@borland.newsgroups> wrote in message

news:3EA71E6C.20B288FE@borland.newsgroups...

Quote
> Brian Baley wrote:
[]
> JPEG Error #42 = JERR_INPUT_EOF: Premature end of input file

> An error in the (original) JPG file?

Or using streams and forgetting to rewind the stream?

David

Re:JPEG Error #42


Simple reset the stream pointer back to 0.
Quote
Brian Baley wrote:
> still don't know what error is - but seems to be due to invalid JPEG data in
> stream...

> "Brian Baley" <bba...@peak-power.net> wrote in message
> news:3ea6e26b$1@newsgroups.borland.com...
> > Anyone know what JPEG Error #42 - an EJPEG exception reported by
> > TJPEGImage - means?

> > I could find no reference to the error in question.

> > it happens here:
> >   Image2.Picture.Bitmap.Assign(jpg);

> > D7
> > Thanks
> > Brian

Re:JPEG Error #42


Take a look on the following site...a list of all jpeg errors...
http://homepages.borland.com/efg2lab/Library/Delphi/Graphics/JpegErro...

best regards
Michael Koop

Brian Baley schrieb:

Quote
> Anyone know what JPEG Error #42 - an EJPEG exception reported by
> TJPEGImage - means?

> I could find no reference to the error in question.

> it happens here:
>   Image2.Picture.Bitmap.Assign(jpg);

> D7
> Thanks
> Brian

Other Threads