[DUG] Interbase Blobs in Delphi 2010
Jeremy Coulter
jscoulter at gmail.com
Thu Mar 4 14:21:56 NZDT 2010
well, the thing is, this IS a blob field not a string field. but I will give
it a try
Jeremy
On Thu, Mar 4, 2010 at 2:17 PM, Colin Johnsun <colin.adug at gmail.com> wrote:
> Sounds like a Unicode issue. The default string in D2010 is a unicode
> string.
>
> Can you use:
>
> IBQuery1.ParamByName('blobby').AsString := 'blah blah blah';
>
> ?
>
> Colin
>
> On 4 March 2010 11:08, Jeremy Coulter <jscoulter at gmail.com> wrote:
>
>> Hi All.
>> I am just working thru converting a D2007 app to D2010.
>> Its taken me most of the moring to get updated controls, install them,
>> convert strings etc.etc. but this one has stumpted me.
>>
>> I am inserting some data into a blob field in Interbase like so (or
>> similar)
>>
>> IBQuery1.ParamByName('blobby').AsBlob := 'This is the data to go into the
>> blob field';
>>
>> Now interesingly enough, this works fine In D7 and D2007, but D2010 says
>> [DCC Error] untWebEPortal.pas(2223): E2010 Incompatible types: 'TBytes' and
>> 'string'
>>
>> I guess I now have to do something else, can someone point me in the right
>> direction?
>>
>> Jeremy
>>
>> _______________________________________________
>> NZ Borland Developers Group - Delphi mailing list
>> Post: delphi at delphi.org.nz
>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
>> unsubscribe
>>
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100304/8f3e153b/attachment-0001.html
More information about the Delphi
mailing list