Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49076

Download / create file from byte array

$
0
0

@joconolimits wrote:

Hey Guys

I need to achieve the following:

  1. From an API response I get JSON with file details.
  2. In The JSON I have a property DocumentData which is a byte array.
  3. What I need is to download that file in the device storage.
  4. I can create a file with the cordova-file-plugin but I can't load it with the DocumentData, as the cordova file plugin receives a string for the data property.

So My questions are. How can I create / Download a file from a byte array?
Can I achieve this with the cordova-file-plugin, or I need to use other plugin?

Regards
Jordan

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>