Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to decode base64 string coming from server?
I'm trying to decode a string like this
NSData *decodedData = [[NSData alloc] initWithBase64EncodedString:htmlText options:0];
NSString *decodedString = [[NSString alloc] initWithData:decodedData encoding:NSUTF8StringEncoding];
NSLog(@"%@", decodedString);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question