Questions tagged [binary-data]

Binary-data is information stored using a two character alphabet (typically written using 0 and 1)

Binary Data is information which is stored using a two character alphabet. For example, the number 42 could be stored as its base-2 representation: 101010.

In modern computers, almost all data is ultimately represented in binary form.

To be useful, the writer and reader of binary data must have a pre-agreed format (e.g. a file consisting of a 32-bit, two's compliment integer followed by three IEEE 754 floating point numbers).

The term is usually used to distinguish data stored in this way against data stored using a textual encoding. For example, the digits of 42 in base-10 (4 and 2) may be represented using ASCII as 00110100 and 00110010. Whether this is considered binary data or not depends on the task at hand; a chat client would consider messages as textual data, but the communication protocol it is built on may consider the same messages as arbitrary binary data.

1585 questions
0
votes
1 answer

Read binary file from server and prase it in javascript

This is my problem: there is binary file (containing short int - 16 bit) on the server I'd like to load it and create data for graphs (I use http://dygraphs.com/ - it must be native format array [ [0,1], [1,2] ]) I've tried this…
miyagi
  • 23
  • 1
  • 4
0
votes
2 answers

Redis bitmap data to Mysql - ETL strategies

I really love both redis and mysql, and use them both extensively. I am interested in purging certain keys that I no longer need from my redis instance because, well, memory is expensive. I'd like to park it on disk and leave it there forever. …
Landon
  • 4,088
  • 3
  • 28
  • 42
0
votes
1 answer

how to save and read binary information in matlab

I am processing an image and want to save the result into binary ubit1 file, but I am getting unexpected results. >> fid=fopen('test.test','w'); >> fwrite(fid,'100101','ubit1'); >> fclose(fid); >> fid=fopen('test.test','r'); >>…
asakryukin
  • 2,524
  • 1
  • 13
  • 14
0
votes
0 answers

Binary data from webservice(octedstream) into SQL statement android

Is it possible to use binary data (contentype = octet-stream) that I receive from a webservice as a SQLite statement? Or should i first convert it into a string? (but the problem here is that it consists of unrecognized symbols, for example images,…
JaperTIA
  • 129
  • 1
  • 2
  • 13
0
votes
0 answers

Generation of binary data using Beta distribution in R

I am new user in R. In my work, I have to generate binary data(0 or 1) using beta distribution (rbeta command). I have to create a matrix of such data. In some of the columns I want to have more zeros than ones or ones more than zeros. And this…
kalyani
  • 1
  • 2
0
votes
1 answer

Find the combinations of 2 1's in a binary number

We have a binary number and we need to generate combination of 2 1's from the given number. If given such a combination of 2 1's we should be able to produce the next combination. Example:- Given vector : 10101111 Given combination : 10100000…
Maximus
  • 143
  • 3
  • 12
0
votes
2 answers

Calculate threshold for vector

I have a vector for which I need to calculate a threshold to convert it to a binary vector (above threshold=1, below=0). The values of the vector are either close to zero or far from it. So if plotted the vector, values either lie near X-axis or…
BaluRaman
  • 265
  • 5
  • 16
0
votes
2 answers

Parsing Binary DICOM Data in Dart

I am currently working on a web application to read and write binary DICOM data. My goal is to prove that this is possible and can be done very quickly with Dart. What the best way to parse binary data into strings, ints, and doubles in dart?
0
votes
1 answer

Java ssl with BufferedWriter and binary data

The problem is solved, see below... I am currently developing a server-client application. The server is programmed in C/C++ using openssl and the client is programmed in android-java using the SSLSocket class. To write to the SSL-socket (client) I…
Ch33f
  • 609
  • 8
  • 17
0
votes
1 answer

How PostgreSQL LargeObjectManager Works?

Im using LargeObjectManager in C# for storage file in database, and do the job like a charm, but im not sure how it works, where the data is located, how can i retreive a list of all storaged files... I just what to know if is the best choice for my…
Najera
  • 2,869
  • 3
  • 28
  • 52
0
votes
0 answers

C++ Binary character are converting to plain text

im sending a file using TCPSocket and its being sent correctly but the problem is in my split function it converts the binary bytes to plain characters if i writed the orignal received buffer to the file it gives me real bytes 100% like orignal…
TariqoO
  • 46
  • 1
  • 9
0
votes
1 answer

Tool to retrieve binary jpg data from SQL Server

(Asking on behalf of a friend employed in a local bank) Since he's no programming experience (neither do I with SQL Server), he's looking for a tool which can show all the jpg images stored in a windows SQL Server database. Google didn't give any…
understack
  • 11,212
  • 24
  • 77
  • 100
0
votes
2 answers

Conversion from \xff to 0xff

I'm reading a binary input register from an ADC, the input that im getting is like this: data = '\xff\xff\xff\xff' , data[0] = '\xff' I have to translate that data in to 2's complement numbers fix8_7 (fixed binary point in the 7th bit from LSB),…
maverick88
  • 41
  • 1
  • 7
0
votes
2 answers

How to build a file from binary string using javascript

I am trying to use BusinessObject RESTful API to download a generated (pdf or xls) document. I am using the following request: $.ajax({ url: server + "/biprws/raylight/v1/documents/" + documentId, type: "GET", contentType: "application/xml", …
bjorge
  • 179
  • 1
  • 1
  • 12
0
votes
1 answer

Trying to figure out binary date format

I've been trying to decode this binary date format for a while now, but considering I've never done that sort of thing before, I'm having a little bit of trouble. I know which bytes represent the date and I know what each output is supposed to be,…
John Fawcett
  • 696
  • 1
  • 5
  • 13