Hello,
I want to convert the NSData to bytes array. I have one webservice to which I want to pass this bytes array.
How can i do?
Thanks you
Hello,
I want to convert the NSData to bytes array. I have one webservice to which I want to pass this bytes array.
How can i do?
Thanks you
See the documentation, there is a bytes method that will give you a pointer to the raw data and a getBytes:length: method that will copy the data into given buffer.
Look into using the bytes, getBytes:length:, or getBytes:range: methods of NSData (each of those is a link to the documentation).