TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The state of binary data in the browser

24 pointsby nolanlabout 10 years ago

1 comment

KwanEsqabout 10 years ago
&gt;Firefox, conversely, doesn&#x27;t have the canvas.toBlob() method, so if you want to convert a canvas to a Blob, you need to use canvas.toDataURL() and convert the dataURL to a Blob instead. blob-util does this under the hood.<p>I don&#x27;t know where they are getting this. Firefox proposed[1] the toBlob() method, and implemented[2] it in Fx19.<p>[1] <a href="https:&#x2F;&#x2F;lists.w3.org&#x2F;Archives&#x2F;Public&#x2F;public-whatwg-archive&#x2F;2011Apr&#x2F;0132.html" rel="nofollow">https:&#x2F;&#x2F;lists.w3.org&#x2F;Archives&#x2F;Public&#x2F;public-whatwg-archive&#x2F;2...</a><p>[2] <a href="https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=648610" rel="nofollow">https:&#x2F;&#x2F;bugzilla.mozilla.org&#x2F;show_bug.cgi?id=648610</a>
评论 #9444068 未加载