Questions tagged [binaryfiles]

A binary file is a computer file which may contain any type of data, encoded in binary form for computer storage and processing purposes.

A binary file is a computer file that is not a text file. It may contain any type of data, encoded in binary form for computer storage and processing purposes.

Many binary file formats contain parts that can be interpreted as text. for example, some computer document files, word file, office files, contain the text of the document but also contain formatting information in binary form.

Source: Wikipedia (Binary file)

2897 questions
15
votes
2 answers

Poor performance parsing binary file in haskell

I have a set of binary records packed into a file and I am reading them using Data.ByteString.Lazy and Data.Binary.Get. With my current implementation an 8Mb file takes 6 seconds to parse. import qualified Data.ByteString.Lazy as BL import…
Dave Anderson
  • 667
  • 1
  • 7
  • 14
15
votes
3 answers

NoSQL database for storing big files?

I need to store very large (more than 512Mb) binary files into a NoSQL database. What particular NoSQL database implementation allows that?
Edward83
  • 6,664
  • 14
  • 74
  • 102
15
votes
1 answer

It's possible to put binary files on nexus repository?

At my work all development uses Java technology, and we use Nexus to manage our Maven repositories. But for a new project, the build requires dll and exe artifacts. Is it possible to put those windows binary files into a Nexus repository? Is there…
PRF
  • 821
  • 1
  • 9
  • 16
14
votes
2 answers

Ubuntu: How to link a binary

I have a C++ code. I compiled it and I now have the binary xyz. Now everytime I need to execute the binary, I had to switch to the corresponding directory to execute it using ./xyz But how do I run the binary using a command say xyz from anywhere.…
Vivek
  • 4,526
  • 17
  • 56
  • 69
14
votes
2 answers

How do I Mimic Number.intBitsToFloat() in C#?

I have been going crazy trying to read a binary file that was written using a Java program (I am porting a Java library to C# and want to maintain compatibility with the Java version). Java Library The author of the component chose to use a float…
NightOwl888
  • 55,572
  • 24
  • 139
  • 212
14
votes
2 answers

SQLite: insert binary data from command line

I have this SQLite table: create table mytable ( aid INTEGER NOT NULL PRIMARY KEY, bid INTEGER NOT NULL, image BLOB ); And I want to insert a binary file into the image field in this table. Is it possible to do it from the sqlite3 command line…
MobileCushion
  • 7,065
  • 7
  • 42
  • 62
13
votes
3 answers

Parsing binary files with Python

As a side project I would like to try to parse binary files (Mach-O files specifically). I know tools exist for this already (otool) so consider this a learning exercise. The problem I'm hitting is that I don't understand how to convert the binary…
D.C.
  • 15,340
  • 19
  • 71
  • 102
13
votes
1 answer

How to create a binary file with Rust?

I can write binary code to file with Rust. However, when I create a file, the file created is a text file, not binary. I can create a binary file with C++ like this: ofstream is("1.in", ofstream::binary | ofstream::out | ofstream:: trunc); How…
Yen Chun Lee
  • 141
  • 1
  • 1
  • 4
13
votes
3 answers

What are possible reasons for binary files corruption on android devices

Recently I'm investigating reasons for binary file corruption. Specificly, we have an android app, the native part can read/write binary file on SD card. Sometimes, the binary file corrupts for unknown reasons. We have collected some of these files…
songlj
  • 927
  • 1
  • 6
  • 10
13
votes
1 answer

How to convert PDF binary parts into ASCII/ANSI so I can look at it in a text editor?

Most PDFs contain lots of binary looking parts in between some ASCII. But I remember also having seen PDFs where such binary parts by and large were absent, and one could open them in a text editor to study their structure. Is there a trick, tool,…
simplybest55
13
votes
1 answer

Posting form-data and binary data through AWS API Gateway

I'm trying to POST "mutlipart\form-data" to my EC2 instance through AWS API Gateway, but I couldn't find a way to this. There is a way to post data using "application/x-www-form-urlencoded" and Mapping Tamplate to convert it to JSON but still…
13
votes
1 answer

Writing files in bit form to a file in C

I am implementing the huffman algorithm in C. I have got the basic functionality down up to the point where the binary codewords are obtained. so for example, abcd will be 100011000 or something similar. now the question is how do you write this…
sfactor
  • 12,592
  • 32
  • 102
  • 152
13
votes
2 answers

Packing and Unpacking binary float in python

I am having some trouble with packing and unpacking of binary floats in python when doing a binary file write. Here is what I have done: import struct f = open('file.bin', 'wb') value = 1.23456 data =…
Wilsonator
  • 407
  • 1
  • 5
  • 14
13
votes
3 answers

What is the best way to distribute a binary of my project on GitHub?

I have a small github repo to convert MS Word Documents, but most people will just want the binary. Should I Reorganise my repo to have a src/ and bin/ directories with the most up to date .exe in with the code and expect people to download the…
Toby Allen
  • 10,997
  • 11
  • 73
  • 124
12
votes
3 answers

Spring upload non multipart file as a stream

I am working with Spring Boot 1.2.5 and I would like to upload a raw binary file to a controller. The file size may be large so I do not want to hold the whole request in memory but instead stream the file, in fact the file is being generated as…
cmaynard
  • 2,852
  • 2
  • 24
  • 34