views:

40

answers:

1

Hey all,

I have been trying to send .png images from iPhone to web service. I have come so fas as converting the .png image into a byte[] array. I am clueless as to how to use soap or HTTP get/post to transfer the byte[] image to the web service.

Any help would be greatly appreciated.

Sayeed

+2  A: 

if you want to use just an HTTP-POST, you can try the ASIHTTPRequest library. it wraps the NSHTTPRequest into an easy-to-use container. there is also an example how to submit files (your png).

manu
@manuI couldn't find the example you referred toSayeed
Bogus Boy
open the example page above and search for "Sending data".you'll find an easy to understand example how to send a POST request with a file attached.
manu