Save PDF file from base64 string in ionic in local folder


How can we save PDF file from base64 string to a local folder in the Android device in ionic 2


I never managed to get this working myself, and ended up using File Transfer for the actual PDF. If that is an option, I think you should check that out :slight_smile:

If you feel like giving it a go anyway, decode the base64 and use File to save it (createFile method)


Can you share me the code please


check this one Ionic - Base64 PDF


If it’s already a string could you not just leave it as a string and save to local storage or one of the other keyvalue type options?


ok thank you
I will implement that and check