Subject | [firebird-support] BLOB Problem - NO TDBImage |
---|---|
Author | H.I.S Developer |
Post date | 2003-08-09T09:48:24Z |
Hi Martijn Tonies
I am not using any DB component.
I use something like
For Storing
q.FieldByName('DOCMANIMAGE').LoadFromFile('c:/temp.bmp')
or
q.FieldByName('DOCMANIMAGE').Assign(Image1.Picture.Graphic)//where image 1
has the image of c:/temp.bmp
For Retriving
q.FieldByName('TESTIMAGE').SaveToFile('c:/temp.bmp')
I get the error the moment the query is opened
VigneZ
At 11:20 AM 09/08/2003 +0200, you wrote:
I am not using any DB component.
I use something like
For Storing
q.FieldByName('DOCMANIMAGE').LoadFromFile('c:/temp.bmp')
or
q.FieldByName('DOCMANIMAGE').Assign(Image1.Picture.Graphic)//where image 1
has the image of c:/temp.bmp
For Retriving
q.FieldByName('TESTIMAGE').SaveToFile('c:/temp.bmp')
I get the error the moment the query is opened
VigneZ
At 11:20 AM 09/08/2003 +0200, you wrote:
>Hi,
>
> > I have a BLOB field of segment length 30000 and subtype -1. I am able to
> > store and retrive any BMP image. In case of JPG, while storing I have no
> > problem but while I retrive it I get a "Not a bitmap, metafile or icon"
> > exception". Why is this so?
>
>Are you using a TDBImage to load your graphic? 'Cause that
>doesn't support JPG.
>
>With regards,
>
>Martijn Tonies
>Database Workbench - the developer tool for InterBase & Firebird
>Upscene Productions
>http://www.upscene.com
>
>
>To unsubscribe from this group, send an email to:
>firebird-support-unsubscribe@yahoogroups.com
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/