Adding capturing prototype and creating user in db

I have a problem in submitting captured file as jSon string to server.
With the purpose to store captured file at server side rather than
client side for later retrievement. Suggest me some ideas if you know.
Minh