Write Raw Binary to System Phonegap / Cordova file

I am using an API in my application that returns an image in binary. I am trying to write this to a file using cordova fileWriter.

Assuming the var data

returned binary contains. I can successfully write this to the filesystem ( writer.write(data);

). However, the image is damaged and won't open.

Do I need to do something with the data received before writing it? Maybe turn it into something ?, I'm not familiar with binary data management. Would be grateful for any help

+3
javascript binary cordova html5-filesystem


source to share


No one has answered this question yet

Check out similar questions:

1500
Writing Files in Node.js
429
AngularJS: Initializing a Service with Asynchronous Data
273
Is there any difference between PhoneGap and Cordova commands?
2
HTML5 Binary with w / Base64
2
How to write binary image data to local filesystem using Node.js services on webOS?
1
FileWriter performance by Cordova FileReader (large files)
1
Cordon file plugin is not written to file
1
Writing the string "raw binary" with a file file
0
how to recover binary data from SQL Server database back to file (attachment not image) VB.net Desktop
0
View image file written to file system with FileWriter in Gallery in IOS with phone screensaver



All Articles
Loading...
X
Show
Funny
Dev
Pics