tomijs Posted July 19, 2017 Report 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 Quote Link to comment Share on other sites More sharing options...
tomijs Posted July 19, 2017 Author Report 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.