Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Does this answer your question? How to convert Base64 String to javascript file object like as from file input form? Commented Dec 3, 2019 at 4:24
  • No, I am getting same error '0x800a01bd - JavaScript runtime error: Object doesn't support this action' also with this solution. Commented Dec 3, 2019 at 4:35
  • var block = strL.split(";"); // Get the content type of the image var type = block[0].split(":")[1];// In this case "image/gif" // you can al so assign // var type = 'base64'; var pos = str.replace('data:;base64,', ''); Commented Dec 3, 2019 at 4:58