[Qt-interest] Convert an array to a JPEG
Robert Wood
robert.wood at apostrophe.co.uk
Fri Sep 2 14:00:15 CEST 2011
Sean, Andreas, thank you, that worked perfectly!
On 02/09/11 12:26, Sean Harmer wrote:
> Hi,
>
> On Friday 02 September 2011 12:19:08 Robert Wood wrote:
>> I have downloaded a JPEG and have it sitting in a biggish array of
>> ViChar which I believe is just a normal eight bit char. I have then
>> opened a file and used QTextStream to send these bytes out, one at a
>> time into a .jpeg file.
>
> Don't use QTextStream to save binary data. Just use QFile::write( const char *
> data, qint64 maxSize ) directly.
>
> Cheers,
>
> Sean
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list