How to convert NSString value to NSData..
thanks and regards
NSString* str= @"teststring"; NSData* data=[str dataUsingEncoding:NSUTF8StringEncoding];