Re: Send Base64 encoded data
Maybe the problem is in the way you read the data... Do you read it as text or as binary?
You should read it as binary, wit ha QDataStream.
Re: Send Base64 encoded data
Btw, have you noticed QByteArray? It might be more convenient to use than char* and it also has helper methods toBase64() and fromBase64()... ;)
Re: Send Base64 encoded data
Can you please give me an example o what you said..because from Qt assistant I found an example but id does not work..
Thank you
Re: Send Base64 encoded data
I know, but the function I have to use takes char *
Re: Send Base64 encoded data
You have QDataStream::readRawData and QByteArray::data. They both work with char arrays.
Re: Send Base64 encoded data
Quote:
Originally Posted by
rmagro
I know, but the function I have to use takes char *
Well, you could still handle all the file reading and such with QByteArray and then simply pass QByteArray::data() to that function. Of course you can use char* if you want to. This was just a friendly suggestion. :)