Community
cancel
Showing results for 
Search instead for 
Did you mean: 
igor_u_
Beginner
49 Views

How to get byte[] from NSData on moe?

 I need some like this

NSData *data = [NSData dataWithContentsOfFile:filePath];
NSUInteger len = [data length];
Byte *byteData = (Byte*)malloc(len);
memcpy(byteData, [data bytes], len);

But on java

Tags (1)
0 Kudos
0 Replies
Reply