VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123456[7]8910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 10:29:17 08/06/01 Mon
Author: Ruy
Subject: Re: Invalid offset into the BLOB
In reply to: Michel 's message, "Re: Invalid offset into the BLOB" on 07:37:25 08/06/01 Mon

Sorry,
the code donŽt have the second line, but anyway the error occurs when execute the first line: ImageScrollBox.SaveToStream(Image1,'TIFF');
IŽam trying to save a ImageScrollBox, format TIFF, into field BLOB.
With extension JPEG is ok, but i canŽt save the backwhite image in this format.

Ruy.

>
>Hi Ruy,
>
>You seem to be saving twice to the same stream:
>
>> ImageScrollBox.SaveToStream(Image1,'TIFF');
>> Table1Imagem.SaveToStream(Image1);
>
>I am not sure what is the intention. You may want to
>add,
>
>Image1.Seek( 0, soFromBeginning ) in between the
>calls, but that would overwrite to first SaveToStream.
>
>Best regards,
>
>Michel
>
>
>>Hi Michel,
>>
>>I'am running the code bellow and get message "invalid
>>offset into the BLOB".
>>
>>procedure TMainForm.Post1Click(Sender: TObject);
>>var Image1 : TBlobStream ;
>>begin
>> Table1.Insert;
>> Image1 :=
>>TBlobStream.Create(Table1Image1,bmReadWrite);
>> ImageScrollBox.SaveToStream(Image1,'TIFF');
>> Table1Imagem.SaveToStream(Image1);
>> Table1.Post;
>> Image1.Free;
>>end;

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.