Capacitor File System plugin

Hi,
We have been using Ionic 5 with angular 10, capacitor. A part of our project is to allow users to upload and download files from a blob server like azure. We achieved uploading by using xmlhttprequest. It went fine.

When it comes to downloading, we tried using file plugin by cordova. It didn’t worked as well as its out of question to use cordova when i have capacitor. So, we switched to file system plugin. We tried with the sample code you have in the github and it seems to not work. Also our file comes as ablob. where as filesystem plugin doesn’t accept blob.

We tried to resolve the issue but so far not able to find a solution.

Can you provide us right information or path to take to achieve this?

1 Like

@vamsidogiparthi , Did you find the solution?

No success @dk2890. We actually switched to standard download approach instead of this one. But i am curious that no body faced this issue nor the ionic community have any solutions to it.

I had a similar problem a few months ago. I remember fixing it by converting the blob to a base64 which is supported by capacitor filesystem plugin.

Hi @josemarsc-dev, Can you share the sample code on how you achieved it? So, that it can help people like us. I will try the approach you mentioned and will see if it works.