Hi,
I am trying to convert data into bytes. i am using following,
Code:
NSData *data1 = [NSData dataWithContentsOfFile:FilePath];
NSUInteger len = [data1 length];
Byte *byteData = (Byte*)malloc(len);
memcpy(byteData, [data1 bytes], len);
Its the correct method?
After converting into bytes i have to pass it onto web service. How i can pass it?
in case of string we write %d
in case of integer %i
what will be in bytes?
Kindly guide me,