binary-data Questions
2
I am receiving binary data in a string. I want to encode that into Base64. Is there any class to do that operation (I want an API).
Prenomen asked 17/6, 2011 at 11:50
11
Solved
I've seen a few questions here related to determining the similarity of files, but they are all linked to a particular domain (images, sounds, text, etc). The techniques offered as solutions requir...
Adkison asked 24/2, 2009 at 0:21
3
Solved
I am working on a web app that opens binary files and allows them to be edited.
This process is basically ondrop -> dataTransfer.files[0] -> FileReader -> Uint8Array
Essentially, I want ...
Blowzed asked 17/8, 2014 at 22:39
6
Solved
I need to pipe some data to a program's stdin:
First 4 bytes are a 32-bit unsigned int representing the length of the data. These 4 bytes are exactly the same as C would store an unsigned int in m...
Wool asked 12/7, 2014 at 1:50
4
Solved
I want to store hashes as binary (64 bytes). But for any type of API (web service) I would want to pass them around as strings. hashlib.hexdigest() will give me a string, and hashlib.digest() will ...
Brewhouse asked 21/10, 2011 at 23:4
10
Solved
I need to communicate between Javascript and PHP (I use jQuery for AJAX), but the output of the PHP script may contain binary data. That's why I use bin2hex() and json_encode() on PHP side.
How do ...
Electronarcosis asked 8/10, 2011 at 7:38
5
Solved
I've binary file consisting double float (8 bytes) or just float (4 bytes) value which was generated in the following way:
$ python -c $'from struct import pack\nwith open("file.bin", "wb") as f: ...
Verniavernice asked 22/4, 2016 at 10:43
11
Solved
How to convert an integer number into binary vector using R?
For example :
number <- 11
[1] 1 0 1 1
what is the fastest possible method of conversion (using R code or some existing functions...
Gaptoothed asked 23/8, 2012 at 8:54
2
Solved
So, I'm trying to write a gzip file, actually from the net, but to simplify I wrote some very basic test.
import gzip
LINES = [b'I am a test line' for _ in range(100_000)]
f = gzip.open('./test.te...
Presence asked 9/4, 2020 at 5:7
2
Solved
I have tens of millions of rows to transfer from multidimensional array files into a PostgreSQL database. My tools are Python and psycopg2. The most efficient way to bulk instert data is using copy...
Conley asked 15/11, 2011 at 22:21
2
I accidentally committed some large binary data into some commits. Since then I've updated my .gitignore, and those files are no longer being committed. But I'd like to go back into the older commi...
Acidosis asked 30/12, 2010 at 18:8
2
Solved
Sorry for the title, it might be a bit confusing but I don't know how I could have explained it better.
There are two files with .cat (catalog file) and .dat extensions. A .cat file contains the in...
Babara asked 26/4, 2022 at 17:5
2
Solved
I understand that with c++20 sign magnitude and one's comp are finally being phased out in favor of standardizing two's comp. (see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0907r3.ht...
Alard asked 4/3, 2022 at 16:1
9
What tools are available to aid in decoding unknown binary data formats?
I know Hex Workshop and 010 Editor both support structures. These are okay to a limited extent for a known fixed format but...
Fleisher asked 29/1, 2009 at 18:13
7
Solved
I am looking for a fast way to preserve large numpy arrays. I want to save them to the disk in a binary format, then read them back into memory relatively fastly. cPickle is not fast enough, unfort...
Novick asked 8/3, 2012 at 14:28
3
I recently received an example export file generated by the Roche LightCycler 480 instrument. It uses a proprietary XML format, for which I haven't found a specification yet.
From such types of fi...
Ful asked 20/10, 2016 at 17:17
2
Solved
Assume I have the string:
my_data = '\x00\x00\x80?\x00\x00\x00@\x00\x00@@\x00\x00\x80@'
Where I got it is irrelevant, but for the sake of having something concrete, assume I read it from a binar...
Dyak asked 1/8, 2012 at 13:14
4
Solved
I'm on the look-out for any implementations of this new binary data representation.
Ferryman asked 5/12, 2013 at 10:58
6
Solved
I need to be able to delimit a stream of binary data. I was thinking of using something like the ASCII EOT (End of Transmission) character to do this.
However I'm a bit concerned -- how can I know...
Whithersoever asked 17/12, 2011 at 0:38
1
Solved
My Java program needs to send a binary payload via QR Code, but I can't get it to work. I have tried several QR Code libraries and many approaches, but all seem to have this problem. My current imp...
Guiltless asked 13/11, 2020 at 7:54
2
I have a dataset which follows the one-hot encoding pattern and my dependent variable is also binary. The first part of my code lists the important variables for the entire dataset. I used the meth...
Marolda asked 6/5, 2018 at 16:20
2
Solved
I'm trying out the new WebClient from Spring 5 (5.0.0.RC2) in a codebase that uses reactive programming and I've had success mapping the JSON response from an endpoint to a DTO in my app, which wor...
Penuche asked 29/6, 2017 at 9:24
12
Solved
I have a web server which will read large binary files (several megabytes) into byte arrays. The server could be reading several files at the same time (different page requests), so I am looking fo...
Lipps asked 8/1, 2010 at 21:24
2
I've created the following test table:
CREATE TABLE t (
a VARCHAR(32) BINARY,
b VARBINARY(32)
);
INSERT INTO t (a, b) VALUES ( 'test ', 'test ');
INSERT INTO t (a, b) VALUES ( 'test \0', 'test ...
Alms asked 27/3, 2015 at 2:33
4
This seems to be the type of question that should have a lot of duplicates and plenty of answers, but my searches have led only to frustration and no useable solutions.
In Python (preferably 3.x),...
Garpike asked 15/10, 2015 at 9:52
1 Next >
© 2022 - 2024 — McMap. All rights reserved.