title: Save Canvas Image data to mySQL database and retrieve it to edit again
body: <p>Let say I draw a line on a DIV, using Jquery library</p>
  
  <p>I want to save the line into database, how I can do it?</p>
  
  <pre><code>function save()
          {
            var c = document.getElementById("colors_sketch");
            var ctx= c.getContext("2d");
            var data = ctx.getImageData(0,0,c.width,c.height);
          }
  </code></pre>
  
  <p>I manage to get the var data from getImageData() method, how can I save it to mySQL database?</p>
  
  <p>I want to retrieve the image some other day and edit the drawing, like draw extra line, how can I do it?</p>
  
  <p>Please help</p>