Data conversion
Helper functions for converting data
ArcOS has several utilities built-in for converting data to different formats. All of these helper functions are part of the convert
object. Here's what you get:
Converts an ArrayBuffer
to a string
.
Converts a string
to an ArrayBuffer
.
Asynchronously converts a Blob
to a string
.
Converts a string
to a Blob
, optionally specifying a mimetype.
Converts an ArrayBuffer
to a string
, optionally specifying a mimetype.
Converts a Blob
to a Data URL
Ofcourse you have all the flexibility you need to convert data your own way, these are just the functions that I've written for ArcOS to make data conversion with especially filesystem operations easier.
Last updated