[Interest] displaying Qt-coded JPEG image in browser
Alexander Carôt
alexander_carot at gmx.net
Fri Jan 26 14:36:51 CET 2024
> Hi, maybe passing JPG through fromUtf8() and toUtf8() munges it too
> much, what happens if you simplify, instead of:
>
> QString jpgBufferString( finalJpg.data() );
> QString encodedString = jpgBufferString.toUtf8().toBase64();
>
> 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
and if I did:
QString jpgBufferString( finalJpg.data() );
QString encodedString = jpgBufferString.toBase64();
I get:
error: no member named 'toBase64' in 'QString'
More information about the Interest
mailing list