Retrieving images from database in delphi [closed]
I want to store and retrieve images from sql database in Delphi XE.
My code:
TBlobField(query.FieldByName('image')).SaveToStream(MStream);
Image1.Picture.Graphic.LoadFromStream(MStream);
Don't forget to set the stream position to 0 between saving from the database and reading from the image.
精彩评论