I think this issue is related to your problem - https://github.com/elm-lang/http/issues/11. *HTTP.getString *resolves to javascript *readAsText *whereas what you need is something that resolves to *readAsBinaryString*. This got lost when elm-lang/http replaced evancz/elm-http.
On Friday, 27 January 2017 03:55:03 UTC, Duane Johnson wrote: > > Big picture: > > I'm writing a visual display algorithm of a binary ".hex" file that is the > result of compiling code on the Arduino platform. I load the file into the > browser via HTTP.getString, and then attempt to display the values. > > Problem: > > I'm unable to find a way to represent this binary data stream as a series > of 16-bit integers. I've attempted String.toList which results in a (List > Char) type, but what should I do with Char? Char.toCode and Char.fromCode > seem specifically tuned for use with keyboard events. > > Is there a way to handle a binary data series in Elm? > > Thanks, > Duane Johnson > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
