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?
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest