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
2 answers

Binary Numbers what is the solution?

Does anyone know how I can solve this problem? Any help would be great...... I cant seem to get my head around it. As you know binary digits can only be either 1 or 0. Say you had a 8 digit Binary number like a byte >>>>>> 0001 1000. I'm trying to…
13rianC
  • 21
  • 1
  • 7
0
votes
6 answers

Parsing binary data in java received over TCP socket server

I have a socket server which keeps listening to incoming requests. The data received will be in the form of binary array of bytes. Data format is something like this. 2321902321221200AA Whereas 1 byte is data begin 4 bits is version 4 bits is data…
user2058277
  • 1
  • 1
  • 1
0
votes
1 answer

how to get [Binary Data] value from a MSI file

I am reading a MSI file using python msilib library. My aim is to extract [Binary Data] from Binary table and dump into a file. (Using ORCA tool, we can extract the binary data by double clicking [Binary Data] cell and write to a file) I could not…
aberry
  • 447
  • 3
  • 10
0
votes
2 answers

Lamp / Cakephp: Streaming an image : Binary 0x00 replaced by 0x20

I'm trying to create a script that pulls an image out of the database and displays it to the user, called by But the problem I'm having is when the image is displayed all of the Nulls (0x00) are replaced by 0x20…
SeanDowney
  • 17,368
  • 20
  • 81
  • 90
0
votes
1 answer

Display Button for binary content in datagridview

I have an xml file which acts as a data table. It holds various types of data. The data types could be different in any of the columns. An example would be: row(1)String, int, date; row(2)Binary, int, date; row(3)String, binary, int. Which leads…
jforward5
  • 93
  • 1
  • 12
0
votes
1 answer

fread gives BadPtr when done in a new process

I have written a C++ Dll which has two functions, one writes a binary file to disk and and other reads that file from disk and load into memory. //extremely simplified code looks like this bool Utilities::WriteToBinary(wstring const fileName) …
Haris Hasan
  • 29,856
  • 10
  • 92
  • 122
0
votes
1 answer

fstream binary read/write behaviour

I've got a "strange" problem in writing/reading binary values: bool readHeader(std::fstream &file) { file.seekg(0); int a = file.tellg(); file.get(reinterpret_cast(&a), sizeof(a)); int b = file.tellg(); …
Dejwi
  • 4,393
  • 12
  • 45
  • 74
0
votes
2 answers

How to display an Image with a fixed size, fetched from the Database in ASP.NET

My Table in the Database contains a column with a type : image. I have managed to upload the image to the database. But almost all tutorials out there, shows us how to give the Image Controller a URL which contains the name of the page, plus a…
user1665700
  • 512
  • 2
  • 13
  • 28
0
votes
1 answer

how to parse a binary encoded rss feed

hi i am having a problem downloading and reading in a rss feed from a particular site, the issue seems to be that the resulting downloaded rss feed looks to be in binary format, can anybody tell me how i can get this back into a readable format that…
binhex
  • 374
  • 4
  • 13
0
votes
6 answers

Storing XML document in pre-parsed binary format

My application need to store large amounts of XML-like hierarchical information with the following requirements: Fast to read Minimal memory consumption Typed data instead of merely text Any suggestions for a binary format that fulfills these…
Tony the Pony
  • 40,327
  • 71
  • 187
  • 281
0
votes
2 answers

Convert a rectangular binary matrix to a graph?

I know for the fact that square binary matrix can be converted to a graph. For example using gplot in matlab matrix below can be converted to the graph 0 1 1 1 0 0 0 1 0 can be represented by a graph A->B, A->C, B->A,C->B But I wonder if there…
discipulus
  • 2,665
  • 3
  • 34
  • 51
0
votes
0 answers

Send and Receive Binary SMS in Android?

I am working on an POC in which my task is to send the DATA SMS or Binary SMS. and Receive the Binary SMS. I am working with the below code but Its failed to send SMS sms.sendDataMessage(dest, src, port, message.getBytes(), sentPI,…
Sam-In-TechValens
  • 2,501
  • 4
  • 34
  • 67
0
votes
1 answer

Cluster binary data

I have a large data set with BINARY user/items feature matrix: I need to cluster both users and items. Is there anyway to do them simultaneously in Mahout? More importantly, if I use loglikelihood as a similarity measure, what clustering…
user1848018
  • 1,086
  • 1
  • 14
  • 33
0
votes
2 answers

Windows IPC: Can I send binary data over an anonymous pipe?

I need to send data from child processes to parent. Some of this data is HTML, plain text, etc. but it may also be necessary send image data, zip file data, etc. As I understand it, anonymous pipes use the child process standard input and standard…
paperjam
  • 8,321
  • 12
  • 53
  • 79
0
votes
2 answers

CodeIgniter - Binary image not being displayed

I've built a function on class Image that retrieves or should retrieve me the image in a binary format. However I just get the error icon when I call that controller method. I need this done this way, because the images are being sent to an iOS and…
João Dias
  • 1,078
  • 1
  • 15
  • 38