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.
binaryfiles
2,933
questions
0
votes
1
answer
51
views
How to get rid of C6387 warning on call to fwrite function?
In Visual Studio 2022, I am getting the following warning when I call fwrite.
Warning image C6387
It says: C6387:'fout' could be '0': this does not adhere to the specification for the function 'fwrite'...
-2
votes
1
answer
44
views
How to write an array of structs to a binary file [closed]
I have been going around and around on this to no avail and google hasn't been my usual friend. Basically I have an array of structs (basically DB records) that I want to binary write to a file. ...
0
votes
0
answers
29
views
Running Iperf3 binary on android 14
For an app I am making, I need to be able to perform network bandwidth and down/upload speed tests using iPerf3. On the official iPerf website (https://iperf.fr/iperf-doc.php) I found a binary that ...
0
votes
0
answers
10
views
File sent via multipart/form data was received as base64 string
I could send an image file sucessfully using Swagger or Postman where I could upload the file from the local machine. However, when I need to send a file that is saved online, I need to compose the ...
0
votes
0
answers
16
views
How to scroll down the page when using orbitcontrols from react-three/drei?
I'm using react-tree/fiber , three, and react-three/drei to show a glb format file. The issue is i'm not able to scroll down to the other section of page if i'm on glb file section currently. Because ...
-2
votes
2
answers
108
views
Writing/Reading from a binary file without having to declare a buffer variable - but via anonymous object
Currently, for writing to a binary file I'd write:
file.write((char*)&toWrite, sizeof(toWrite type));
And for reading from a binary file I'd write:
file.read((char*)&readInto, sizeof(readInto ...
0
votes
0
answers
24
views
In Android, for binary files what is the exact mime type should be set?
I am trying to do file-associations for my Android Application. The file type that I am using is a binary file with our own custom-extension. (Example: *.abc)
Expectation is that user should be able ...
0
votes
1
answer
58
views
Segmentation fault (core dumped) in reading a binary file, memmove-vec-unaligned-erms.S: No such file or directory
I am trying to debug a piece of code that reads binary files I created. It seems that when the number of elements to read is higher than a certain treshold, the script I wrote fails.
The file contains ...
0
votes
1
answer
44
views
Questions regarding endian Byte swapping
I need to write a Python Program that asks for user data, stores them in a binary file and and sends them via socket in binary format to a device.
The data should be transfered in little endian byte ...
0
votes
1
answer
41
views
Binary format is getting converting to other format while hosted application in AWS lambda
I am having a .net core WebAPI application developed by C# and hosted in AWS lambda
I am having controller like below
public async Task<IActionResult> EP(Guid Id)
{
var byteArrayData = iData....
0
votes
3
answers
254
views
Use a Lisp to identify whether a given sequence exists within a binary stream
Using standard Common Lisp techniques (libraries acceptable if they offer easier or quicker possibilities), what would be the analogous way to do (search "bar" "foobarbaz"), where &...
2
votes
1
answer
78
views
How to parse correctly the `.note.gnu.property` section of an ELF executable?
I am writing an ELF parser as a side project and I have encountered a problem while trying to parse .note* sections.
The documentation for ELF32 and ELF64 (available here and here, pages 42 and 13 ...
0
votes
1
answer
50
views
How do i convert a binary file with extension .GRD to NeCDF in R?
I have a binary file of temperature with an extension.GRD. I downloaded it from IMD gridded temperature data at a resolution of 1 degree by 1 degree. [IMD High resolution 1.0 By 1.0 degree gridded ...
0
votes
0
answers
63
views
VS Code vs. txt file: "Unable to View Diff (this is a binary file)"
I just selected a specific commit from my Git Graph list, and I'm trying to access the corresponding modifications made to a .txt file.
I get this "Unable to View Diff (this is a binary file)&...
0
votes
0
answers
27
views
How can I create a unit test for a memory dump without mocking?
In Javascript, I have these two functions:
const promiseMemoryDump = async (address1, address2, outputFile) => {
if (getPlatform() === 'linux') {
await promiseExec(`memdump -s ${address1} -...