user2547522
user2547522

Reputation: 120

save file in Blackberry 10 WebWorks html5

I found this https://developer.blackberry.com/html5/apis/blackberry.io.html example that load a file, but, nothing for save a file in html5 webworks to BB10

Upvotes: 1

Views: 317

Answers (1)

chadtatro
chadtatro

Reputation: 789

We actually have a sample that shows how to do this hosted on GitHub.

https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/canvasToFilesystem

The sample shows how to save imageData from a Canvas element to the filesystem, but the actual file writing portion of the sample could be used for any file type.

https://github.com/blackberry/BB10-WebWorks-Samples/blob/master/canvasToFilesystem/saveCanvas.js#L31-L98

Upvotes: 2

Related Questions