Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Getting raw Binary data from Blob

$
0
0

Hello!

I got a picture from my phone camera. It's coming to me like a Blob.

var blob = event.media;
The next thing I wanted to make is somehow get the binary data in string representation. The reason is following concatenating it with another data and forthcoming sending it to the server.
var data = "....some parameters....";
 
console.log(blob.toString()); // makes [object Ti Blob]
console.log(blob.getText()); // makes null
What should I do to make my plans true? Appreciate any help.

Viewing all articles
Browse latest Browse all 8068

Trending Articles