SAVE CODE BASE64 IMAGE

Topics: Developer Forum, User Forum
Aug 24, 2013 at 4:56 PM
Edited Aug 24, 2013 at 4:57 PM
Hello,

I try to send a signature from mobile HTML5-CANVAS to the server.
here's my Javascript part (client side):

....
xmlhttp.open("post","vdir/getfile.avfp"  ,true);
xmlhttp.send("imgData="+signaturePad.toDataURL());
....


and from the GETFILE.AVFP (server side)

....
img=oRequest.querystring("imgData")
img=STRTRAN(img,"data:image/png;base64,","")
STRTOFILE( STRCONV(img, 14), "c:\imageResult.png")
....

Can you help me ?
Aug 24, 2013 at 11:50 PM
Here's a snippet I wrote - it works GREAT with Opera Mobile on Android only (as far as I know)
https://activevfp.codeplex.com/discussions/405756

But we'll have to wait until more mobile browsers support GetUserMedia: http://caniuse.com/stream
Aug 25, 2013 at 5:41 PM
and... you cannot write to the C:\ ROOT; so removed the c:\ and try that.
When setting up IIS a root folder is established. AVFP can read and write only to that folder and subfolders.
(otherwise can you imagine the security risk.)