Blob to image
Hi
Is there a function/routine/script to convert a blob to an image like jpeg, png, etc?
Thanks!
2 Answers
-
Accepted Answer
Assuming mobile…
var filename = Titanium.Filesystem.applicationDataDirectory + "/image.jpg"; f = Titanium.Filesystem.getFile(filename); f.write( blob );
You need to use
applicationDataDirectory
. -
Thanks, it works!