title: Upload canvas element to webserver/database?
body: <p>I'm searching for a good method to upload a canvas element from Firefox to a webserver or database to have the ability to reload it later.</p>
  
  <p>My ideas:
  1. my first idea was to use getImageData() and save the canvas as an ImageData object to the database, but this might not a good solution because these objets can get quite large.
  2. second idea is to use a Flash/Javascript method to upload the canvas as an PNG to the webserver.</p>
  
  <p>Do you have any comments on these methods or maybe have another good solution?</p>