Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

santoshgornal

macrumors newbie
Original poster
May 22, 2008
10
0
hi All

i am trying to read image from the resource which is png format, the name of the file is images.png
which in turn contain another ten images,i just want to read this file as NSString which agiain i am parsing to read particular images.

thanks
santosh
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
This makes no sense: a PNG is not a string. If you turn it into a string the data will be interpreted as a series of characters. You'd be better reading it into an NSData object and working with the bytes there...
 

santoshgornal

macrumors newbie
Original poster
May 22, 2008
10
0
Reading image Resorce as NSString

This makes no sense: a PNG is not a string. If you turn it into a string the data will be interpreted as a series of characters. You'd be better reading it into an NSData object and working with the bytes there...


hi

i have tried with NSData but its not reading Data from resource as NSData
please can u send me some code so that i can try some more methods

thanks
santosh
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.