Save PDF file from base64 string in ionic in local folder


#1

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


#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)


#3

Can you share me the code please


#4

check this one Ionic - Base64 PDF


#5

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?


#6

ok thank you
I will implement that and check
@Sathasivamr