So in my project I’m trying to allow a user to download a select file. I want to save the file to the data directory ( that part I have figured out) just not sure on the right direction with certain ways of achieving this being deprecated. Any guidance would be helpful.
HttpClient to do the downloading and Capacitor’s
Filesystem to write to the device.
So I wouldn’t turn the blob to text and write it?
I don’t know what you mean by “turn the blob to text”.
doesnt the file system only write string values? or is there something i am missing entirely
writeFile isn’t terribly efficient, because the bridge itself can only carry strings, but it will do Base64 decoding and write the binary data. The source is here. Another option is diachedelic/capacitor-blob-writer.
in the event its a video it seems it could be highly volatile