On Thursday 26 May 2016 08:51 PM, Jonathan Vanasco wrote:


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
Will such libraries also work with json objects with key:value where value is some raw stream like base64 encoded upload?

Happy hacking.
Krishnakant.

--
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/57471549.40404%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to