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

Output from Struct in Binary File returns junk

Hi Am making a simple class program about storing Customer records in a binary file using structs. Problem is with "Display All" function So far i can add records to binary file but when i try to list all file items using my DisplayAll function, it…
0
votes
2 answers

Java binary file to share with another computer

How do I write to a pre-specified binary file format in Java that I can share with another computer that will parse it (and other computer is not using Java)? The file format has longs, floats, and some bitfields. This is a file that the Java…
jeffslofish
  • 360
  • 2
  • 13
0
votes
2 answers

VBA - Read 15 MB binary file to var

Is it possible in Excel VBA to read a binary file to a variable? A function similar to: function bin2var(filename as String) As XXXX And also, is it possible to do the reverse operation? function var2bin(filename as String,data as XXXX)
user590715
0
votes
2 answers

Opening a Binary file in a function? See Code:

I have no problem opening and reading a binary file when i am not passing it to a function. But, in this case i am passing it to a function and keep running into a problem. void fun1 (int amount,struct inventory a[],FILE *fp); int main() { tag…
Shamrocck
  • 31
  • 2
0
votes
1 answer

Reading Binary file on Windows phone

I want to read a binary file using BinaryReader, but I keep getting an exception: using (var stream = File.Open("file.bin", FileMode.Open, FileAccess.Read)) { using (BinaryReader r = new BinaryReader(stream)) //EXCEPTION …
Ateik
  • 2,458
  • 4
  • 39
  • 59
0
votes
4 answers

segmenting and writing binary file using Python

I have two binary input files, firstfile and secondfile. secondfile is firstfile + additional material. I want to isolate this additional material in a separate file, newfile. This is what I have so far: import os import struct origbytes =…
hatmatrix
  • 42,883
  • 45
  • 137
  • 231
0
votes
1 answer

Accessing specific binary information based on binary format documentation

I have a binary file and documentation of the format the information is stored in. I'm trying to write a simple program using c++ that pulls a specific piece of information from the file but I'm missing something since the output isn't what I…
TheOx
  • 2,208
  • 25
  • 28
0
votes
2 answers

Edit VSAM file using C#

We are looking at different ways to update a VSAM file. One of the things that we would like to do is to stop writing any new cobol code. We were wondering is it possible to download a VSAM file from the Main Frame to a Windows Server, then use a C#…
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
0
votes
1 answer

Segmentation fault on closing a binary file

The part of the code which gives rise to the segmentation fault is given below. ifstream xiFileId(xifile, ios::binary); //xifile is a char * //the ii_t class in the following line is taken from…
suresh
  • 1,109
  • 1
  • 8
  • 24
0
votes
1 answer

Tools, approaches for analysing proprietary data format?

I need to analyse a binary data file containing raw data from a scientific instrument. A quick look in a hex viewer indicates that's probably no encryption or anything fancy: integers will probably be written as integers (but I don't know what byte…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
0
votes
1 answer

Reading binary PLY file generates weird results

My task is to read vertex data from a binary little endian .ply file. Problem is that I cant find a way how to correctly extract data, starting after the end_header line. PLY file: ply format binary_little_endian 1.0 element vertex 240753 property…
dawe134
  • 61
  • 1
  • 1
  • 6
0
votes
0 answers

Slow Rendering and Freezes When Displaying Large Binary File Content in HTML

I have a requirement to display various files to users, primarily as plain text. However, users have the ability to upload arbitrary files, including binary files. Some of these files can be quite large, up to 10 MB in size. The problem happens when…
HKG
  • 334
  • 3
  • 9
0
votes
1 answer

Why HTTP request place image file into request.form instead of request.files?

I would like to upload an image file and some text to my API end point, I have a Flask API server to handle post requests from React Native APP and unit test script, but I don't know why I can only get the data from request.form instead of…
KPB98115
  • 7
  • 2
0
votes
1 answer

How to create a binary output in java that can be read directly in Python without using the unpack function?

I am having an issue in Java converting a 2d float array in a binary format that Python could open without using unpack method. I followed the instruction and learned how to convert a float to a byte array but the results did not match when I open…
newbie5050
  • 51
  • 6
0
votes
0 answers

Reading fbx file - Can't interpret received vertex data

I've successfuly read vertex data from a fbx file. PLANE : Pos : vec3(-1.000000, -1.000000, 0.000000) vec3(1.000000, -1.000000, 0.000000) vec3(-1.000000, 1.000000, 0.000000) vec3(1.000000, 1.000000, 0.000000) …
LucasSokol
  • 125
  • 4
1 2 3
99
100