[Qt-qml] How to handle binary data in qml

Gregory Schlomoff gregory.schlomoff at gmail.com
Sun Nov 14 07:07:26 CET 2010


I don't know how your API work, but you'll probably need to encode the
binary data into a format more suitable for transfer, like Base 64, or
something. So my advice would be to expose the binary data as a string
(encoded as needed).


On Sat, Nov 13, 2010 at 4:00 PM, vuleetu <vuleetu at gmail.com> wrote:
> Hi,
>   I am working on a twitter-like client which use qml. There is a feature
> which allow user post picture and twitter at the same time. What i want to
> do is to use XMLHTTPRequest to post this picture. How do i get binary data
> from cpp and how to use this binary in javascript? Thanks
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
>




More information about the Qt-qml mailing list