Saving user's drawing to the server

I have a file set up so that a user can draw stuff. I need to make a button that can save this picture to the server. So that the user can retrieve the drawing whenever he wants.

**I don’t want the user to save it on their computer.

Anyone know how to do this?