BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TImage & jpeg

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Nikos
Guest





PostPosted: Thu Oct 06, 2005 11:46 am    Post subject: TImage & jpeg Reply with 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
Nikos
Guest





PostPosted: Thu Oct 06, 2005 12:11 pm    Post subject: Re: TImage & jpeg Reply with quote



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





PostPosted: Thu Oct 06, 2005 10:21 pm    Post subject: Re: TImage & jpeg Reply with quote



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





PostPosted: Thu Oct 06, 2005 10:43 pm    Post subject: Re: TImage & jpeg Reply with quote

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





PostPosted: Thu Oct 06, 2005 10:55 pm    Post subject: Re: TImage & jpeg Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.