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

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -