> We have recently purchased a SONY Digital camera and would like to load the
> JPG files into a Paradox table.
> How can I programme it?

It was something like (Don't quote me I haven't gone back to look at the code yet)

1. Use a TJPEGImage to load the image in form a file
2. Create a TMemoryStreamand do JPEG.SaveToStream(Strm)
3. FieldbyName('Blah').LoadFromStream(Strm);

and the reverse to load back...

We had issues with blob size and blobcache causing AV with Oracle and the BDE,
I don't know if this will be an issue with paradox.

Essentially if the blob was bigger than the max blob size you couldn't read it back.
and The blob cache failed using FetchAll with more rows than the BlobCache size -
The BDE thought that the blob was there when it wasn't (the buffer had already been
released) and a dangling pointer caused an AV...


> I guess I need to use a blob field.

Yep blob it is...

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---------------------------------------------------------------------------
  New Zealand Delphi Users group - Database List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to