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

How do you get a Node.js Buffer from a blob returned by the Node.js 18 fetch implementation (undici-based)?

How do you get a Node.js Buffer from a Blob returned by the Node.js 18 Fetch API implementation? I know I can get binary data in the form of a Blob using the Fetch API const blob = await fetch("https://example.com/image.png") .then(r =>…
Lumin
  • 373
  • 6
  • 21
0
votes
2 answers

Windows Python Selenium chrome binary issue? No chrome binary at C:\Program Files\Google\Chrome\Application\chrome.exe

So I'm fairly new to coding and I am supposed to be parsing Yelp reviews so I can analyze the data using Pandas. I have been trying to use selenium/beautifulsoup to automate the whole process, but I can't get past the chrome binary location errors…
Y0hno
  • 17
  • 1
  • 6
0
votes
1 answer

Reading a binary file using C++

I am performing this simple task of writing into a binary file the contents of a class followed by reading and displaying them. I achieve that using the follwing code: class Matrix{ public: vector> Mat; int d; }; int…
0
votes
1 answer

File download from Google Drive to byte array failing - C# HttpClient

I'm new to HttpClient. The following code to download a binary file returns a byte array of the wrong length and containing the wrong data: public static async Task ReadWebFileBinaryAsync ( HttpClient httpClient, string webUrl ) { byte…
BillF
  • 1,034
  • 3
  • 13
  • 28
0
votes
1 answer

Extract JSON arrays from binary file

I have a binary file that I have read into a text file. This contains two JSON arrays that both have data that I wish to take out. I have tried cleaning the file, I have attempted to decode via utf-8 and ascii and get errors several times. The best…
Lynchie
  • 1,077
  • 2
  • 20
  • 36
0
votes
0 answers

Parse binary into a structure dynamically

I have to read a binary file which is usually 266 bytes but sometimes can have additional dynamic fields. The binary fields are positional and when they are not there they are inserted anyway at 00 with the declared length. The only dynamic fields…
0
votes
1 answer

I have a trouble in counting amount of "items" in binary file. C

I want to count the amount of "items" in binary file using feof and fseek functions. I have a binary file with names of people in chars and their salaries in floats. before each name there is an int that represents the amount of chars in the…
Pentakorr
  • 25
  • 3
0
votes
0 answers

How can I determine the functions yet-to-be-overridden in an abstract C++ class?

I'm attempting to implement an extension of an abstract class, as a concrete class; but can't figure out why it's continually compiling to abstract. I think I'm missing a pure virtual somewhere, but can't find it. I'm building an extension onto the…
Michael Macha
  • 1,729
  • 1
  • 16
  • 25
0
votes
1 answer

Error in reading parts of a binary file C

I am trying to read a binary file in three parts, one part in the first 20% of the file, the second part is the last 20% of the file, and the last part is the remaining 60% I have run into a problem, that starts in the reading of the second part and…
0
votes
0 answers

Having 2 git remotes, one with git lfs the other without

I have a tricky situation. I have a project, there are 2 remotes, a personal gitlab remote and a remote hosted by my organization. It seems the organization git server cannot handle/ does not have git-lfs. I only need to submit to the organization's…
Makogan
  • 8,208
  • 7
  • 44
  • 112
0
votes
0 answers

Memory access violation after reading all objects from binary file and display them on the concole

I have a class Tort(representation of the cake), in the main() in the switch statement I call the function displayAllTorts() which should read the objects of Tort from the file (objects were written to the file upfront) and display them on the…
0
votes
0 answers

Problem reading offsets from file in java

I am trying to make a program that reads the PS3 PARAM.SFO file in java. I am having trouble reading the shorts and the ints. I think they are backwards in the PARAM.SFO file. Here's the code I have. if(isOpen()) close(); file = new…
adam
  • 463
  • 1
  • 7
  • 15
0
votes
1 answer

Identify data structure from unknown file (hexdump)

I have a bunch of FOUND.000/FILEnnnn.CHK files with some data pattern. I would like to know what it is and what data fields it contain (how to interpret that). So far, I investigated the following facts: The structure consists of two parts. One of…
0
votes
1 answer

Move the pointer in a bytearray as seek does for a BinaryIO

If I have a binary file, I can open it in mode rb and move the pointer with .seek(): with open(fname, "rb") as fid: fid.seek(101) But this is not possible with a bytearray:bytearray(10).seek(1). Does a bytearray which supports seek exist? I…
Mathieu
  • 5,410
  • 6
  • 28
  • 55
0
votes
3 answers

php get string from binary file

I have JPG image with XMP meta data inside. I'd like to read this data, but how? $content = file_get_contents($fileName); var_dump($content); displays real number of bytes 553700 but $len = strlen($content); var_dump($len); displays 373821 So, I…
Lari13
  • 1,850
  • 10
  • 28
  • 55
1 2 3
99
100