0 Replies Latest reply on Jan 6, 2010 7:15 PM by rjs23

    [javascript issue] canvas toDataUrl() issue


      A script contains

      function miniMapUpdate(){
        air.trace("data is: "+url);


      What toDataURL() does is that it returns canvas as a png base64 data url. I use this function to convert canvas into a img element ("<img src="">)


      The problem I'm having in adobe air 1.5.0 with Window Vista 64bits is that toDataUrl() returns blank string instead of data url. It should be at least contain "data: " if canvas is empty but for some reason toDataUrl() keeps returning totally blank.

      Any idea why does this returns blank string?


      Perhaps toDataURL function isnt fully supported in 1.5.0?


      More information about toDataUrl: