Read And Write Binary Data

50 views
Skip to first unread message

Malamin Gindi

unread,
Feb 5, 2018, 10:03:36 AM2/5/18
to DroidScript
I have files that are sent to my app in base64 format. The files are in epub and pdf. I wanna write the files to storage. I've tried decoding using Javascript's atob function but writing the file using app.write, the file get corrupted. Please help me!

Steve Garman

unread,
Feb 5, 2018, 12:30:49 PM2/5/18
to DroidScript
There is no straightforward way to do this at the moment.

I believe there will be an option added to app.WriteFile in the next beta to enable this.

Malamin Gindi

unread,
Feb 5, 2018, 2:25:35 PM2/5/18
to DroidScript
I can't wait to have it. It gonna great. Thank you Steve for the reply
Reply all
Reply to author
Forward
0 new messages