Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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?

— asked August 19th 2010 by John Welch
  • blob
  • bytes
  • string
0 Comments

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;
    };
    
    — answered August 19th 2010 by John Welch
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.