How To Save Any Format Of Byte Array Content Data To A File In Winjs And Save To Local Folder In Windows Tablet
hi we are developing windows application using javascript , we want to download a file from json service which it returns some base-64 string we are converting that to byte array f
Solution 1:
try this :
var folder = Windows.Storage.ApplicationData.current.localFolder;
Debug.writeln(folder.path);
folder.createFileAsync("page.html", Windows.Storage.CreationCollisionOption.replaceExisting).then(function (file) {
return Windows.Storage.FileIO.writeTextAsync(file, r.response);
}).then(function () {
Debug.writeln("page saved");
});
Post a Comment for "How To Save Any Format Of Byte Array Content Data To A File In Winjs And Save To Local Folder In Windows Tablet"