yeah I tried that and it didnt like it.<br><br>Jeremy<br><br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 2:36 PM, Colin Johnsun <span dir="ltr"><<a href="mailto:colin.adug@gmail.com">colin.adug@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well alternatively, you can try passing in an AnsiString into your blob field. I haven't tried it myself but it may be worth a go.<br>
<font color="#888888"><br>Colin</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On 4 March 2010 12:21, Jeremy Coulter <span dir="ltr"><<a href="mailto:jscoulter@gmail.com" target="_blank">jscoulter@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">well, the thing is, this IS a blob field not a string field. but I will give it a try<br><font color="#888888"><br>
Jeremy</font><div><div></div><div><br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 2:17 PM, Colin Johnsun <span dir="ltr"><<a href="mailto:colin.adug@gmail.com" target="_blank">colin.adug@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sounds like a Unicode issue. The default string in D2010 is a unicode string. <br><br>Can you use:<br>
<br>IBQuery1.ParamByName('blobby').AsString := 'blah blah blah';<br><br>?<br><br>Colin<br><br><div class="gmail_quote"><div><div></div><div>
On 4 March 2010 11:08, Jeremy Coulter <span dir="ltr"><<a href="mailto:jscoulter@gmail.com" target="_blank">jscoulter@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>
Hi All.<br>I am just working thru converting a D2007 app to D2010.<br>Its taken me most of the moring to get updated controls, install them, convert strings etc.etc. but this one has stumpted me.<br><br>I am inserting some data into a blob field in Interbase like so (or similar)<br>
<br>IBQuery1.ParamByName('blobby').AsBlob := 'This is the data to go into the blob field';<br><br>Now interesingly enough, this works fine In D7 and D2007, but D2010 says [DCC Error] untWebEPortal.pas(2223): E2010 Incompatible types: 'TBytes' and 'string'<br>
<br>I guess I now have to do something else, can someone point me in the right direction?<br><font color="#888888"><br>Jeremy<br>
</font><br></div></div>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz" target="_blank">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz" target="_blank">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br></blockquote></div><br>
<br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz" target="_blank">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz" target="_blank">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz" target="_blank">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz" target="_blank">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br></blockquote></div><br>