Re: Saving JPEG images to images field in SQL2000 with ADODataSet
- From: "Martin Cremer" <Martin..Cremer@xxxxxx>
- Date: Thu, 15 Jun 2006 10:16:53 +0200
How abaout SaveToStream(FStream)
Cheers
Martin Cremer
"Wira" <wira@xxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:4490f687@xxxxxxxxxxxxxxxxxxxxxxxxx
I'm Using D5 and SQL2000 for database.TBlobField(FieldByName('im_pic_thumbnail')).LoadFromStream(FStream)
One of my tables in SQL2000 have an image field type for saving picture ,
the problem is when I want to save JPEG images into my table always appear
error message "Bitmap image is not valid".
procedure SavePicture ;
var FStream : TMemoryStream ;
begin
with tblPicture do begin //tblPicture is ADODataSet Component
try
Insert ;
FStream := TMemoryStream.Create ;
FStream.LoadFromFile('C:\PictureFiles\Image01.JPG') ;
;
Post ;
finally
FStream.Free
end;
end;
end;
Thanks
Wira
.
- Follow-Ups:
- References:
- Prev by Date: Re: Saving JPEG images to images field in SQL2000 with ADODataSet
- Next by Date: Re: Connecting to an Access database
- Previous by thread: Saving JPEG images to images field in SQL2000 with ADODataSet
- Next by thread: Re: Saving JPEG images to images field in SQL2000 with ADODataSet
- Index(es):