<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Martin Schreiber wrote / napĂsal(a):
<blockquote cite="mid:201109231428.07579.mse00000@gmail.com" type="cite">
<pre wrap="">On Friday 23 September 2011 14.00:07 Sergei Gorelkin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Recently strings behavior was changed, they are now codepage-aware. The
compiler can now implicitly convert strings from one encoding to another.
To handle non-string data, you should use RawByteString type, or better
yet non-string types like (dynamic) array of byte.
</pre>
</blockquote>
<pre wrap=""><!---->So TBlobField.Value probably should be changed to array of byte</pre>
</blockquote>
It seems, that Delphi XE does it in this way:<br>
Value is of type TBlob and TBlob is byte array<br>
<a class="moz-txt-link-freetext" href="http://docwiki.embarcadero.com/VCL/en/DB.TBlobField.Value">http://docwiki.embarcadero.com/VCL/en/DB.TBlobField.Value</a><br>
<br>
<blockquote cite="mid:201109231428.07579.mse00000@gmail.com" type="cite">
<pre wrap=""> and there
should be a TField.AsByteArray property?
</pre>
</blockquote>
Better use compatible "AsBytes":<br>
<a class="moz-txt-link-freetext" href="http://docwiki.embarcadero.com/VCL/en/DB.TField.AsBytes">http://docwiki.embarcadero.com/VCL/en/DB.TField.AsBytes</a><br>
<a class="moz-txt-link-freetext" href="http://docwiki.embarcadero.com/VCL/en/DB.TBlobField.GetAsBytes">http://docwiki.embarcadero.com/VCL/en/DB.TBlobField.GetAsBytes</a><br>
<br>
-Laco.
</body>
</html>