Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parsing binary data in JavaScript

I want to design and write a 3d image viewing web application in JavaScript. I've already written it in java and flash and basically want to port it. I want the 3d image export files to be in a binary format just like the Java and flash versions I've written however, I'm unsure if JavaScript can handle data in binary format efficiently. Can JavaScript handle binary data quickly? How good/bad is it at handling compared with Java and Flash?

like image 695
Zeeno Avatar asked Jul 11 '11 10:07

Zeeno


1 Answers

JavaScript can handle binary data via typed arrays. And here is a library for dealing with binary files, that you can use as a reference point for your application.

How quick is JavaScript - I'm not sure that this is the right question. It depends on browser, and user`s machine.

like image 136
Bakudan Avatar answered Sep 29 '22 11:09

Bakudan