[Interest] displaying Qt-coded JPEG image in browser
alex at golks.de
alex at golks.de
Fri Jan 26 14:45:13 CET 2024
Am 26.01.2024 um 14:36 schrieb Alexander Carôt via Interest:
>> try:
>> QString encodedString = finalJpg.data().toBase64();
> Hi, would love to do that but this leads to
>
> error: member reference base type 'char *' is not a structure or union
that should be, i guess:
QString encodedString = finalJpg.toBase64();
as finalJpg is already a QByteArray.
basically same applies to:
QString jpgBufferString( finalJpg.data() );
QString encodedString = jpgBufferString.toBase64();
converting from bytearray to char* to string to base64 bytearray to string again?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240126/febb4c9f/attachment.htm>
More information about the Interest
mailing list