Skip to content

Instantly share code, notes, and snippets.

@thoraxe
Created May 22, 2014 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoraxe/f5ea76de5da298a11b87 to your computer and use it in GitHub Desktop.
Save thoraxe/f5ea76de5da298a11b87 to your computer and use it in GitHub Desktop.
>>> reader.result
ArrayBuffer {}
>>> ab2str(reader.result)
"䥇㡆愹€＀￿￿⇿ᇾ牃慥整⁤楷桴䜠䵉P,�ĀĀ�Ȃń㬀"
>>> ab2str(reader.result).length
28
>>> reader.result.length
undefined
>>> blob = new Blob(ab2str(reader.result))
[Exception... "The method parameter is missing or invalid." code: "0" nsresult: "0x8053001a (TypeError)" location: "<unknown>"] { code=0, message="The method parameter is missing or invalid.", result=2152923162, more...}
>>> blob = new Blob([ab2str(reader.result)])
Blob { size=67, constructor=function(), type="", more...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment