tomijs Posted July 19, 2017 Share Posted July 19, 2017 Hello, I try to convert a bitmapdata to png file to save it on firebase storage. to save pictures on firebase storage i need a path (ex : /data/bmd.png) So, i need a file in my local machine i want upload bitmapdata to png on server (save picture), and download it later to load picture after download i can use bitmapData.DrawImage to print the picture but to upload it i don't know how to do any ideas? Thanks a lot Tomijs Link to comment Share on other sites More sharing options...
tomijs Posted July 19, 2017 Author Share Posted July 19, 2017 i tried : var canvas = document.getElementById("game"); png = canvas.toDataURL("image/png"); but canvas is not fill with bitmapdata pixels Link to comment Share on other sites More sharing options...
Recommended Posts