You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by "sreeraj137 (GitHub)" <gi...@apache.org> on 2018/08/23 12:50:24 UTC

[GitHub] [cordova-plugin-file] sreeraj137 opened issue #245: How to save binary data of zip file in cordova?

I am getting below response from axios.
this is response of zip file. please let me know how to save this filename.zip in cordova. Inside the ZIP there is image files.

PK’M	14528.jpgìºwXSÛ¶7DDšˆ4)RE:¡7!و‚€€Ò{ÄH	-t‚¢R¥*
(UDjDzt¥*U@	"ÒŒ’/î³÷¹÷žçžsÏ{ßçûëÝ3Ïʚ+sÌ9Æå7ÖZÔOÔEÀic#à˜Ý1;€Š® `)@œ0ҝÐÓzt´€ŽÀð{¸E'ð÷¾Ô4Çh_J¿¾´#Nù÷>íH‡ŽÿAÿð{û5ã¯ë¿õnÃo¹‰\÷„Ã<áþ"úú"R¦®P˜ß¯ki@YQIS[QI[IIDYI[MQ[U	8þðøßgøüœî?Vúü؟³1è=§ÿ³OçükÞÿŽÇvÂ38Ø_ôRpýµ(܈põ*)(:`„¿+ÔÛ-

[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/245 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

[GitHub] [cordova-plugin-file] janpio commented on issue #245: How to save binary data of zip file in cordova?

Posted by "janpio (GitHub)" <gi...@apache.org>.
What is axios?

[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/245 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

[GitHub] [cordova-plugin-file] janpio commented on issue #245: How to save binary data of zip file in cordova?

Posted by "janpio (GitHub)" <gi...@apache.org>.
How is this relevant to `cordova-plugin-file` then?

[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/245 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

[GitHub] [cordova-plugin-file] sreeraj137 commented on issue #245: How to save binary data of zip file in cordova?

Posted by "sreeraj137 (GitHub)" <gi...@apache.org>.
how we could write the zip file in .dataDirectory using cordova-plugin-file. Below is the sample code used.
var blob = new Blob([response.data], {type: 'application/zip'});
 fileWriter.write(blob);

[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/245 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

[GitHub] [cordova-plugin-file] sreeraj137 commented on issue #245: How to save binary data of zip file in cordova?

Posted by "sreeraj137 (GitHub)" <gi...@apache.org>.
https://github.com/axios/axios

[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/245 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

[GitHub] [cordova-plugin-file] janpio commented on issue #245: How to save binary data of zip file in cordova?

Posted by "janpio (GitHub)" <gi...@apache.org>.
The documentation has something on storing existing binary files:
https://github.com/apache/cordova-plugin-file#store-an-existing-binary-file-
Did you try this?

[ Full content available at: https://github.com/apache/cordova-plugin-file/issues/245 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org