564NSData to NSString and vice versa
From NSData to NSString:
NSString *s = [[NSString alloc] initWithData:d encoding:NSUTF8StringEncoding];
And the other way round:
NSData *d = [s dataUsingEncoding:NSUTF8StringEncoding]:
From NSData to NSString:
NSString *s = [[NSString alloc] initWithData:d encoding:NSUTF8StringEncoding];
And the other way round:
NSData *d = [s dataUsingEncoding:NSUTF8StringEncoding]: