NSData *finaldata2 =[NSData dataWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@”DefaultProfilePhoto.jpg”]];
now when i convert this NSData to NSString at that time i’m getting value null.
How to resolve this problem
I need data of my png file into 1 NSString
Every subclass of
NSObjecthas a-descriptionmethod, includingNSData:For
NSDatathis will create anNSStringrepresentation of the data, making a string of bytes in hexadecimal format.