[ 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: 06:51:39 08/07/01 Tue
Author: Michel
Subject: Re: Invalid offset into the BLOB
In reply to: Ruy 's message, "Re: Invalid offset into the BLOB" on 10:29:17 08/06/01 Mon

Hi Ruy,

I can't see what is wrong. Here is some code from a borland site:

<a rel=nofollow target=_blank href="http://www.borland.co.jp/qanda/delphi/d0003477.html">http://www.borland.co.jp/qanda/delphi/d0003477.html</a>

The code is very similar. They only thing I can think of is that the size of the image (blob) is larger than what the limit is on the blob size in the database you are using.

Best regards,


>the code donŽt have the second line, but anyway the
>error occurs when execute the first line:
>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.
>>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
>>Image1.Seek( 0, soFromBeginning ) in between the
>>calls, but that would overwrite to first SaveToStream.
>>Best regards,
>>>Hi Michel,
>>>I'am running the code bellow and get message "invalid
>>>offset into the BLOB".
>>>procedure TMainForm.Post1Click(Sender: TObject);
>>>var Image1 : TBlobStream ;
>>> Table1.Insert;
>>> Image1 :=
>>> ImageScrollBox.SaveToStream(Image1,'TIFF');
>>> Table1Imagem.SaveToStream(Image1);
>>> Table1.Post;
>>> Image1.Free;

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

[ 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.