tags:

views:

69

answers:

2

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

+1  A: 

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.

zoul
+3  A: 

Look into using the bytes, getBytes:length:, or getBytes:range: methods of NSData (each of those is a link to the documentation).

Isaac