<div dir="ltr">Thiago, hello, thanks for your reply, sorry have no instructions for create and insert, but have data base with one value which can't be parsed correct(db is cut to one value for provide example)<div><br></div><div><a href="https://bugreports.qt.io/browse/QTBUG-108992">https://bugreports.qt.io/browse/QTBUG-108992</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 28, 2022 at 9:07 PM Thiago Macieira <<a href="mailto:thiago.macieira@intel.com">thiago.macieira@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Monday, 28 November 2022 01:00:01 PST Yauheni Pervenenka via Interest <br>
wrote:<br>
> QSqlQuery query("SELECT value from table");<br>
> while (query.next()) {<br>
> const auto value = query.value(0);<br>
> qDebug() << value.toByteArray().size(); // size 52<br>
> qDebug() << value.toString().size(); // size 30<br>
> qDebug() << value.toByteArray().toHex(); // size 104<br>
> }<br>
<br>
If your data is binary, don't use toString(). That's definitely wrong.<br>
<br>
Can you show the example from the CREATE TABLE command, including the INSERT <br>
one?<br>
<br>
-- <br>
Thiago Macieira - thiago.macieira (AT) <a href="http://intel.com" rel="noreferrer" target="_blank">intel.com</a><br>
  Cloud Software Architect - Intel DCAI Cloud Engineering<br>
<br>
<br>
<br>
_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org" target="_blank">Interest@qt-project.org</a><br>
<a href="https://lists.qt-project.org/listinfo/interest" rel="noreferrer" target="_blank">https://lists.qt-project.org/listinfo/interest</a><br>
</blockquote></div>