On Thursday, May 26, 2016 at 3:02:47 AM UTC-4, Krishnakant wrote:
>
> first, how do I send a request containing JSON object having all the 
> form fields + a png or jpeg image? 
>

option 1- have your ajax script submit a POST with the image in multipart 
file fields
option 2 - have your ajax script submit a GET or POST with the image 
encoded into base64 on your submitted JSON document

Secondly, my server should be able to correctly get the image form the 
> json_body and then store it on the hard disk. 
>

 that various form processing libraries (deform, formencode, etc) have code 
that shows how to process file uploads

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/34e13c2f-e00c-4a15-81ed-9d75b087ad6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to