Software Archive
Read-only legacy content
17061 Discussions

How to get byte[] from NSData on moe?

igor_u_
Beginner
352 Views

 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

0 Kudos
0 Replies
Reply