Skip to main content
Stack Overflow
  1. About
  2. For Teams

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.

Required fields*

How can I convert an ArrayBuffer to a base64-encoded string?

I need an efficient (read native) way to convert an ArrayBuffer to a base64 string which needs to be used on a multipart post.

Answer*

Draft saved
Draft discarded
Cancel
2
  • Not safe. See @chemoish answer Commented Aug 24, 2017 at 4:57
  • It is safe, because all characters of the string are in the range [0–255]. See this comment for a more detailed explanation. Commented May 2, 2025 at 20:39

lang-js

AltStyle によって変換されたページ (->オリジナル) /