PDA

View Full Version : Parsing Images through Webservices - iOS




ashwinr87
Feb 6, 2012, 09:56 AM
Hi,

I am trying to find out how images are sent through webservices for parsing in iOS.
I know how to parse images through image URL but is that the only way images are sent through webservices?
Would images be sent as binary data and if so how would I be able to parse them?

It would be great if someone could let me know.



idelovski
Feb 6, 2012, 11:56 AM
It usually ends with: [UIImage imageWithData:resData]; Before that, you'll most likely collect the image data in NSURLConnection delegate -connection:didReceiveData:.

ashwinr87
Feb 6, 2012, 12:54 PM
thanks for the reply!!

It usually ends with: [UIImage imageWithData:resData]; Before that, you'll most likely collect the image data in NSURLConnection delegate -connection:didReceiveData:.