ios - Decode base64 string for image -


i have encoded string in base64 , want decode getting nil in nsdata *decodeddata. nsstring *images contains encoded string.

nsstring *images = encoded string; nsdata *decodeddata = [[nsdata alloc] initwithbase64encodedstring:images options:0]; uiimage *myimage = [uiimage imagewithdata:decodeddata]; 

perhaps have unknown characters? try passing nsdatabase64decodingignoreunknowncharacters options: parameter.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -