0

If a web service is returning not image URLs but raw image data then how to grab it and to save it to app sandbox? Where should those images be saved for later use?

PS. Any code snippets would be appreciated :)

UPDATE: image data comes base64 encoded as a set of characters.

Centurion
  • 14,106
  • 31
  • 105
  • 197
  • Can you give us an example of the JSON data? How is the binary image data encoded? – Ole Begemann Jan 04 '12 at 13:03
  • 1
    Maybe a NSData to UIImage(View) could help: [NSData to UIImage][1] [1]: http://stackoverflow.com/questions/2240765/nsdata-to-uiimage – CarlJ Jan 04 '12 at 13:06
  • Also see some what related question on Binary data in JSON http://stackoverflow.com/questions/1443158/binary-data-in-json-string-something-better-than-base64 – Vineet Bhatia Jan 04 '12 at 13:15

0 Answers0