How can I convert a NodeJS binary buffer into a JavaScript ArrayBuffer?...
I'm trying to send a HTTP POST to a device on my network.  I want to send four specific bytes of data to the device unfortunately I only seem to be able to send strings to the device.  Is there anyway to send raw binary using javascript?    Her...
With EMCAScript6, I see there's a way to represent binary literals using the 0b or 0B prefix. I was experimenting with it, and couldn't find a way to represent a negative number (since it's not using two's-complement). Am I missing so...
I'm loading a jpeg image from my server in binary format via XMLHttpRequest (I need it that way). It's not base64 encoded.  Is it possible to turn it to an img object with javascript?  Thanks...
I am trying to do a Sha256 on a file in Javascript. I used FileReader(HTML5) to read in a file. I use the readAsBinaryString function in the FileReader to pass in the images file. Then on the FileReader.onload function I pass in the evt.target.result...
I have a simple PHP file which loads a file from my server, base64 encodes it and echoes it out.  Then I have a simple HTML page that uses jQuery to fetch this file, base64 decode it and do a checksum test. The checksum test is not working.  I md5...
I am trying to convert some Java code into JavaScript which is needed for the application I am working on. I am stuck on one class and its methods that convert a variable of type double to long, and then long to a byte array that consists of 8 bytes...
I've read this Stack Overflow thread, and this blog post, but am still unable to understand why some floating point numbers can be represented exactly in binary, and why some can't.  I understand that 0.1, 0.2, 0.3, 0.4, 0.6, 0.7, 0.8, 0.9 wi...
Introduction  Hey folks, i am currently working on a JavaScript-based 3d slicing tool (SLAcer.js - awesome work btw.), that can generate convenient print files for my cheap dlp-printer (SparkMaker). The printing files consist of some G-Code and simpl...
EDIT: changed title from "JS File API - write and read UTF-8 data is inconsistent" to reflect the actual question.  I have some binary content i need to calculate the MD5 of. The content is a WARC file, that means that it holds text as well a...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.