Storing Images in Paradox

I am using a DbImage to let the user select images via an OpenPictureDialog. The images are then stored in a paradox table. I understand that Paradox will not recognize jpeg's
as a valid field value but storing pictures as bmp's requires major disk space.
I want to be able to let the user store jpegs as well as bmps in the table for viewing as a photo album.
My question is: Is there any way to do this in a paradox table?? In fact, it would be nice to let the user convert all pics to jpeg's if they want to conserve disk space.
Is this possible?? Thanks
Jim

To load from a metafile blob:
procedure .....
var MetaStream : TMemoryStream;
.
begin
.
MetaStream := TMemoryStream.Create;
(Table1.fieldbyname('Meta') as TBlobField).SaveToStream(MetaStream);
{you must set the stream to position one so you have something to write!}
IconStream.Position := 0;
Image1.Picture.Metafile.LoadfromStream(MetaStream);
MetaStream.Free;
end;

0

elkiorsCommented: 1998-10-25

I don't know how to do it, but I know you need to use BLOB fields, they allow you to use ANY binary info in them

Thats great if you know that the picture is a JPeg.
But is there any way to tell what the graphic is as it is streamed in.
Unless I know what type graphic it is, I can't display it in the TImage component.
The problem is NOT streaming in the graphic. The error occurs when I try to place
the graphic into the TImage.
Do you know what I mean?

Your original question was about jpegs.
TPicture cannot support any kind of picture "just like that". If you look at the TPicture.Graphic Help file you see that you must define a new class for each new stucture, so that TPicture can "support" it:
"...Use Graphic to specifiy what graphic the TPicture object contains. The graphic can be a bitmap, icon, or metafile, or user-defined graphic class..."
TJPEGImage is a user-defined graphic class, already defined by Borland.
Ronit,