[Bug 28551] TODO: create example utility function that converts text -> ArrayBufferView

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28551

Tim Taubert <ttaubert@mozilla.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ttaubert@mozilla.com

--- Comment #3 from Tim Taubert <ttaubert@mozilla.com> ---
(In reply to Adam Hart from comment #1)
> Created attachment 1598 [details]
> Utility functions for converting text, base64, arrayBuffer

Converting string->base64 and then base64->abv (or the other way around) is not
something we should suggest doing. TextEncoder, as mentioned by Martin above,
is an API made for exactly that. I've used it for all my examples so far and I
think we should use it here too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 24 April 2015 07:16:37 UTC