How to convert an "initWithBytes" NSString to unsigned char*?
here's how the NSString produced
NSString *byte = [[[NSString alloc] initWithBytes:inputbytes length:inputlength encoding:NSASCIIStringEncoding] autorelease];
which contains bytes data that should not be changed in bit level(will be the input of base64 conversion)
The data in the byte is 0x01 0x00 0x01, 3 bytes
and I want to convert it into an unsigned char*
How should I do it?
Thanks