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
1
vote
3 answers

Writing 8 bit values to a binary file in python v3.3

Please let me know the best way to write 8bit values to a file in python. The values can be between 0 and 255. I open the file as follows: f = open('temp', 'wb') Assume the value I am writing is an int between 0 and 255 assigned to a variable,…
B Brown
  • 15
  • 1
  • 5
1
vote
1 answer

OpenCV Mat::data fwrite to file and read

When I try to fwrite an image data, captured from camera with OpenCV, and read them out, things are not getting right. I try them in many format like CV_8UC3 and CV_UC1 gray images. Firstly, I captured an image(640*480) from the camera and save the…
flankechen
  • 1,225
  • 16
  • 31
1
vote
1 answer

MFC Object serialization in C#

I am trying to read a binary file in C# which has been written actually using CArchive. I have done most of the part but stuck in reading an object. Instead of writing bool, int, double object has been written into…
fhnaseer
  • 7,159
  • 16
  • 60
  • 112
1
vote
1 answer

Force just one file as binary in GIT

I need to add a file to a git repository, and I need the correct type of line ending. In perforce, I would just use "-t binary" to force the file to binary, but I don't know how to set the file to binary in GIT. The repository is rather large, so…
Matthias Wandel
  • 6,383
  • 10
  • 33
  • 31
1
vote
1 answer

Defining the structure of a binary file in C++ 11

Since I have to work with files in binary a lot, I would like to have a more abstract way to do that, I have have to perform the same loop over and over: write an header write different kind of chunks ( with different set of values ) in a given…
user2485710
  • 9,451
  • 13
  • 58
  • 102
1
vote
1 answer

How to create a builds repository automatically updating with each commit?

In parallel to my source code's git repository I'd like to have a way to access the history of builds as well. Sure enough I could manually create files/directories à la 67b75589ba57b90e83f9b9a121f8c4b61d0ea897.exe (or using a naming system relative…
Tobias Kienzler
  • 25,759
  • 22
  • 127
  • 221
1
vote
2 answers

error reading a large binary file in MATLAB

I have to read in a large Binary file whose size is 92,504 KB. When I am using fread command MATLAB is giving me error: Error using fread Out of memory. Type HELP MEMORY for your options. I tried to restart MATLAB also so that if I am using any…
maverick
  • 35
  • 1
  • 3
1
vote
2 answers

what does ^@ sign in .txt file suggest

I was concurrently manipulating a txt file (some r/w operation)with multiple processes. and I saw traces of special signs as ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ spreading across some lines now and then. What does this suggest? And…
Daniel
  • 1,484
  • 5
  • 24
  • 42
1
vote
1 answer

Free and ready-to-use binary formats for use with own applications in Java

Are there any ready-to-use and maintainted for a long time "universal" binary formats that I could use for free? I'm writing a game in Java and I considered writing own binary format to save maps to, but then I thought: maybe there're some solutions…
m4tx
  • 4,139
  • 5
  • 37
  • 61
1
vote
1 answer

Read floats from file as numpy array without knowing the data size

I have this code which reads a Fortran unformatted data file and writes the ascii output to a new file output.dat. I want to read this output.dat file into a numpy array. However, the fromfile utility reads strange values, which I think is due to…
atmaere
  • 345
  • 1
  • 8
  • 18
1
vote
1 answer

Writing PDF binary file from stream yields malformed PDF

Dear Stack Overflow users, I would appreciate you kind help with the following problem: We have an Apache server functioning as a forward proxy, with ext_filter configured: whenever the response is of MIME type PDF, the filter is called (a perl…
user2522941
  • 119
  • 7
1
vote
2 answers

writing int value to a binary file by fwrite

I have the below example C code to write int and char array to a file on Linux OS. int main(void){ struct eg{ int x; char y[3]; }; struct eg example_array[5] = {{ 0, {0}}}; int i; for(i=0;i<3;i++){ …
sven
  • 1,101
  • 7
  • 21
  • 44
1
vote
2 answers

Should our 64bit binaries be named differently from their 32bit versions?

Our application has up to now only used 32 bit binaries, it was enough. Slowly we see the need to introduce 64bit versions (in addition to the 32 bit version) for some components, mostly for interfacing with other 64bit components that we didn't…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
1
vote
1 answer

Binary Storage using Git and nuGet

My company is moving to git. Currently, when dealing with binary files, we check them into our current source control system. We want to get to a CI environment, but seeing as how our codebase is very large and spread out, we want to take baby…
Tyler Wright
  • 795
  • 1
  • 9
  • 28
1
vote
0 answers

Where to look for app binary and .dsym file in corona Project

I am creating an app in corona SDK.But unfortunately my app crashes sometimes on my iPad and through console I found out that crash report has been built and saved. I look at this crash report in xcode but it didn't symbolicate it properly. I…
aneela
  • 1,457
  • 3
  • 24
  • 45