views:

28

answers:

2

Hey everyone,

This is what I am trying to accomplish.

  1. Capture images from iPhone
  2. Store them on the web service
  3. Retrieve them when required

I have searched for tutorials on the topic but have found none. Also, there are various threads providing information in bits and pieces which I am finding hard to piece together and deduce something useful from. Please post a sample code that does it.

Thanks in advance.

Sayeed

A: 

To capture images you can use the UIImagePickerController To up- and download images to/from a web server you can use NSURLConnection and it's companion.

And it's always a good start to look into some apple sample codes. They're on the related classes documentation at the top under "Related sample code".

V1ru8
Hey V1ru8,I have checked the sample codes you mentioned. I hate to say this, but I have not found any codes that elaborates on what I wish to accomplish. I understand that I am asking for being spoon fed.
Bogus Boy
This is not just a few lines of code. And it depends a lot on how the server looks like.And the URL Loading System Programming Guide really describes most of the stuff you need. The 'SimpleURLConnections' and the 'AdvancedURLConnections' have good examples.For the upload yo use a POST request and for the download a GET.
V1ru8
A: 

If your trying to upload to a popular web service like Flickr, you will have to read and understand their API. Whether your using one of those, or your own server, most probably you'd want to use this open-source library ASIHTTPRequest as it will provide you with a nice layer of abstraction with communicating with web services.

Salem Sayed