| View previous topic :: View next topic |
| Author |
Message |
Nikos Guest
|
Posted: Thu Oct 06, 2005 11:46 am Post subject: TImage & jpeg |
|
|
When i try to load a jpeg image stored in a table I get "jpeg error #42"
I am trying to load as follow
image1.Picture.Bitmap.assign(IBQuery1.FieldByName('Document'));
when i use JvDBImage i can see the picture
how can I do this without JvDBImage?
Thanks
|
|
| Back to top |
|
 |
Nikos Guest
|
Posted: Thu Oct 06, 2005 12:11 pm Post subject: Re: TImage & jpeg |
|
|
Ok i found the solution
"Nikos" <nandrianakis (AT) summerland (DOT) gr> wrote
| Quote: | When i try to load a jpeg image stored in a table I get "jpeg error #42"
I am trying to load as follow
image1.Picture.Bitmap.assign(IBQuery1.FieldByName('Document'));
when i use JvDBImage i can see the picture
how can I do this without JvDBImage?
Thanks
|
|
|
| Back to top |
|
 |
Jay Wright Guest
|
Posted: Thu Oct 06, 2005 10:21 pm Post subject: Re: TImage & jpeg |
|
|
Whats the solution? I'm working on the same problem.
Jay
"Nikos" <nandrianakis (AT) summerland (DOT) gr> wrote
| Quote: | Ok i found the solution
"Nikos" <nandrianakis (AT) summerland (DOT) gr> wrote in message
news:43450e15 (AT) newsgroups (DOT) borland.com...
When i try to load a jpeg image stored in a table I get "jpeg error #42"
I am trying to load as follow
image1.Picture.Bitmap.assign(IBQuery1.FieldByName('Document'));
when i use JvDBImage i can see the picture
how can I do this without JvDBImage?
Thanks
|
|
|
| Back to top |
|
 |
Charles Hacker Guest
|
Posted: Thu Oct 06, 2005 10:43 pm Post subject: Re: TImage & jpeg |
|
|
Nikos wrote:
| Quote: |
When i try to load a jpeg image stored in a table I get "jpeg error #42"
I am trying to load as follow
image1.Picture.Bitmap.assign(IBQuery1.FieldByName('Document'));
when i use JvDBImage i can see the picture
how can I do this without JvDBImage?
Thanks
|
JPEG ERROR 42 = JERR_INPUT_EOF: Premature end of input file
So it looks like the JPEG image is corrupted, (or NOT reading a JPG
image?).
--
Charles Hacker
Lecturer in Electronics and Computing
School of Engineering
Griffith University - Gold Coast
Australia
|
|
| Back to top |
|
 |
Nicholas Sherlock Guest
|
Posted: Thu Oct 06, 2005 10:55 pm Post subject: Re: TImage & jpeg |
|
|
Charles Hacker wrote:
| Quote: | Nikos wrote:
When i try to load a jpeg image stored in a table I get "jpeg error #42"
I am trying to load as follow
image1.Picture.Bitmap.assign(IBQuery1.FieldByName('Document'));
when i use JvDBImage i can see the picture
how can I do this without JvDBImage?
Thanks
JPEG ERROR 42 = JERR_INPUT_EOF: Premature end of input file
So it looks like the JPEG image is corrupted, (or NOT reading a JPG
image?).
|
Probably the stream has not been rewound.
Cheers,
Nicholas Sherlock
|
|
| Back to top |
|
 |
|