reading resource image as NSString

Discussion in 'iOS Programming' started by santoshgornal, Feb 3, 2009.

  1. santoshgornal macrumors newbie

    Joined:
    May 22, 2008
    #1
    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
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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...
     
  3. santoshgornal thread starter macrumors newbie

    Joined:
    May 22, 2008
    #3
    Reading image Resorce as NSString


    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
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    How about you post your code here?
     

Share This Page