Hi Alessandro

Did you try to load the PNG using the ImageLoader?
http://demo.qooxdoo.org/0.8.x/apiviewer/#qx.io2.ImageLoader

It won't be an RPC call, but i guess you could make the function that
generates the image acessible through a "normal" url?

Best - Roman

turicum wrote:
> Dear Qooxdooxers,
> 
> I need some help with placing a chart in qooxdoo:
> 
> I generate images on the server side (python + matplotlib) and get them via
> JSON-RPC, so that, on the client side, I have a variable with the a raw PNG
> string (starting with �PNG and followed by plenty of non-printable stuff).
> How can I turn it into a qx.ui.basic.Image (or anything else) and display
> it, for example, on a canvas?
> 
> this.RpcRunning = rpc.callAsync( // RPC call, as you can find it in the
> examples
>     function(result, ex, id) { // callback
>         if (ex == null) { // RPC was successful
>             alert(result); // result is a raw PNG string
>             img = new qx.ui.basic.Image(result); // this does not work, of
> course
> [...]
> 
> Thank you!
> 
> Cheers,
> Alessandro

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to