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
1 answer

C++ read/write to binary file. on program exit it gives System.AccessViolationException

This C++ program is created using Visual Studio 2010. It's a group project that has everyone in class stumped. The program initially starts fine and the user can run through the program and add items that are written out to file. the items are read…
myappleguy
  • 113
  • 1
  • 7
1
vote
1 answer

Open HEAD and working directory versions of a binary file in git

Is it possible to open the original version (HEAD) of a file in git that's been overwritten in the working directory, without resetting the changes? This would be incredibly useful for viewing before and after binary files (like images), where git…
naught101
  • 18,687
  • 19
  • 90
  • 138
1
vote
1 answer

Tool to identify binary differences between two files of equal length?

I have an application that in effect copies a file and it is sometimes failing to faithfully copy it for some 20MB test files. I would like to compare the original file to the corrupted ones to see if I can identify any patterns to help me correct…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
1
vote
2 answers

error while ruuning the selenium code

I am facing this issue when i run the selenium script: (I am running this code in tomcat and this is when I face the exception but in normal eclipse this works perfectly well) **org.openqa.selenium.WebDriverException:…
1
vote
1 answer

Why image generated from base64 binary data won't display?

I'm trying to grab an image from a remote location, resize it and save it to Amazon S3. Problem is, I can save the image to S3 allright, but when I try to display it, the browser says image can't be displayed because it contains errors. I'm sure…
frequent
  • 27,643
  • 59
  • 181
  • 333
1
vote
1 answer

PCRE binary files?

I would like to parse binary files with PCRE. My tactic until now was to use fgets to read a line of a file, then parse that line using pcre_exec. This will not work for me now because the "lines" end with a null byte rather than a newline. I did…
Zombo
  • 1
  • 62
  • 391
  • 407
1
vote
1 answer

Running Program on Different Linux Distros

I have this program 'prog' that I can run with no problem on my server. When attempting to run it on my own machine (64-bit Ubuntu), I get the message: bash: ./prog: cannot execute binary file I've made sure all the permissions for all files…
Vincent Russo
  • 1,087
  • 3
  • 20
  • 33
1
vote
1 answer

VBScript How to modify (or compose) Binary data for writing file with ADODB.Stream-command prompt/cscript

I am trying to read a binary file and edit the data and then write the file back as a new file. Reading the file, and Writing the file is not a problem... it works fine. But, any way I try to modify the binary data, I get an error: "VBScript runtime…
Kevin Fegan
  • 1,292
  • 1
  • 16
  • 29
1
vote
1 answer

Java binary file (.raw) output

How can I write .raw files in Java? I have to use this output file as a source file for ParaView.
user1466705
  • 55
  • 1
  • 4
1
vote
2 answers

Creating Binary Files to upload app in app store

I want to create a Binary file of my project. I have set my project to iPhoneDistribution mode. After that I build the project(command B), now, in Xcode in left panel under project , clicking on .app it should reveal the path. But .app is showing…
iCoder4777
  • 1,682
  • 1
  • 14
  • 35
1
vote
1 answer

Creating a list from ".bin" file in C

My goal is to create a list from "menu.bin". This is the func: pitem recupera_menu(pitem p){ pitem novo,aux; FILE *f; f=fopen("menu.bin","rb"); if(f == NULL) …
DmitryK
  • 1,333
  • 1
  • 11
  • 18
1
vote
2 answers

c++. After reading the binary file into a buffer, how to display the buffer in hex?

Basically what I want to do is to read a binary file, and extract 4 consecutive values at address e.g. 0x8000. For example, the 4 numbers are 89 ab cd ef. I want to read these values and store them into a buffer, and then convert the buffer to int…
return 0
  • 4,226
  • 6
  • 47
  • 72
1
vote
2 answers

Generate low-order non-printable characters from XLST

I'm trying to use XSLT text output to generate a file (in a file format that I'm not in control of), and while it is mostly text, it includes low-order non-printable characters as flags, including characters that are not valid within an XLST file…
Stephen Denne
  • 36,219
  • 10
  • 45
  • 60
1
vote
3 answers

how to read binary file content as strings?

I need to read 16 bits from the binary file as std::string or char *. For example, a binary file contains 89 ab cd ef, and I want to be able to extract them as std::strings or char *. I have tried the following code: ifstream *p = new…
return 0
  • 4,226
  • 6
  • 47
  • 72
1
vote
2 answers

AspImage fails to display after url rewriting

I have the following C# code, setting Image value from database. Images are not displayed, fails to show image. It worked until I made url rewrite. ASPxBinaryImage Icon = (ASPxBinaryImage)e.Item.FindControl("IconImage"); Icon.Value =…
levi
  • 3,451
  • 6
  • 50
  • 86