How to save an image as binary ?
Posted: Tue 24 Apr 2007 06:30
I would like to save an image as binary, i tried but it doesn't work! How can i do that ? Thank you.
Discussion forums for open issues and questions concerning database tools, data access components and developer tools from Devart
https://forums.devart.com/
Code: Select all
...
var
BlobField: TBlobField;
begin
MSQuery1.Insert;
BlobField := MSQuery1.FieldByName('Picture') as TBlobField;
BlobField.LoadFromFile('D:\Image.bmp');
MSQuery1.Post;
end;
Code: Select all
MSQuery1.insert;
BlobField := MSQuery1.FieldByName('Picture') as TBlobField;
if getpic.Execute then
BlobField.LoadFromFile(getpic.filename);
MSQuery1.Post;
Code: Select all
MSQuery1.edit;
BlobField := MSQuery1.FieldByName('Picture') as TBlobField;
if getpic.Execute then
BlobField.LoadFromFile(getpic.filename);
MSQuery1.Post;