Reputation: 2296
I'm currently looking at the best way to upload an image to my existing WCF Json service, the service then saves the image to a folder on the server. Is it as simple as streaming the image? Or is there a different practice if you are using json?
Ultimately ill be sending an image from a mobile device to the service.
Upvotes: 0
Views: 5777
Reputation: 14955
Found a good code over this place. Have a look. It should cater your need. The code has both client and server implementation
Upvotes: 1
Reputation: 4001
You could use ajaxForm or ajaxSubmit from http://www.malsup.com/jquery/form/ We used it to call an MVC action with our data, but had to use the iframe fallback option due to IE having issues with ajax and file inputs.
For a mobile site I would expect this to be useful. For a mobile app I would expect it to be more a case of streaming the image as you would any other type of file.
Upvotes: 0