Question

is it possible to load an image in byte array in javascript instead of loading it to canvas? I want to make an image editor in javascript webOS but I can't use toDataURl method of HTML 5 canvas because webOs don't support it ....

Was it helpful?

Solution

Javascript can only handle printable characters, so some binary values are invalid in Javascript. That being said, there are ways to encode or pack binary data using base64 or unicode. Unfortunately, I don't think there is a simple solution.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top