Blob getBytes()?
I have a blob that I want to send as a stream of data to a server and I can't seem to convert a blob to string.
Is there a way to do this?
1 Answer
-
Basically, I want to do the opposite of this…
xhr.onload = function() { var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'ti.png'); f.write(this.responseData); imageView.url = f.nativePath; };