Re: Saving JPEG images to images field in SQL2000 with ADODataSet
- From: "Wira" <wira@xxxxxxxxxxxxxxxx>
- Date: Thu, 15 Jun 2006 15:00:36 +0700
Hi Martin,
It doesn't work. According to help file, I read that SaveToStream function
is saving contents of the Blob to a stream variabel.
Thanks
Wira
"Martin Cremer" <Martin..Cremer@xxxxxx> wrote in message
news:44911779$1@xxxxxxxxxxxxxxxxxxxxxxxxx
How abaout SaveToStream(FStream),
Cheers
Martin Cremer
"Wira" <wira@xxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:4490f687@xxxxxxxxxxxxxxxxxxxxxxxxx
I'm Using D5 and SQL2000 for database.
One of my tables in SQL2000 have an image field type for saving picture
appearthe problem is when I want to save JPEG images into my table always
error message "Bitmap image is not valid".TBlobField(FieldByName('im_pic_thumbnail')).LoadFromStream(FStream)
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
.
- References:
- Saving JPEG images to images field in SQL2000 with ADODataSet
- From: Wira
- Re: Saving JPEG images to images field in SQL2000 with ADODataSet
- From: Martin Cremer
- Saving JPEG images to images field in SQL2000 with ADODataSet
- Prev by Date: Re: ADOX - Create new query in Access Database
- Next by Date: Re: Saving JPEG images to images field in SQL2000 with ADODataSet
- Previous by thread: Re: 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):