Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
0 answers
73 views

I am trying to get image width and height from JPEG XL (ISO BMFF–containerized) file with C. I managed to get through the ISO containers and I got following structure. Size is size of a container in ...
czromXL's user avatar
  • 83
Best practices
0 votes
3 replies
59 views

I am using C++ .NET. Here is example: cli::array<Byte>^ myBytes = bytes//the variable bytes //contains unpredictable amount of bytes, //it can be 32 or 128 or 256, no matter. And I have to ...
humankind's user avatar
Tooling
0 votes
12 replies
92 views

I did encryption with AES, got cipherText, key and iv. And I have wrote this into .txt files. All stuff in txt files look like this: dkfhepfGqW4fgheHjkjkdd69NkashgjtnBnh5f== , or like this: ...
humankind's user avatar
Advice
0 votes
4 replies
54 views

from PIL import Image img = Image.open('some/file.png') img = img.convert(mode='1') imgbytes = img.tobytes() with open('filepath', 'w') as file_out: file_out.write(imgbytes) I would like to write the ...
Cutter's user avatar
  • 1,871
0 votes
1 answer
70 views

I am receiving my ".wav" file in a django view as an "InMemoryUploadedFile" then converting it to bytes: views.py import functions.bytes_to_wav_wave if voice_value: ...
Mohammed Baashar's user avatar
1 vote
1 answer
152 views

I'm trying to implement a lambda function (for educational purposes) to initiate an array to append to the front of potentially encrypted data to save information like salt and initiation vector, ...
Lucy's user avatar
  • 125
0 votes
2 answers
69 views

Below is the code extracted from this repo: import os.path, io filename = "" n_chunks = 12 # Number of processes to use -- will split the file up into this many pieces def ...
Akira's user avatar
  • 2,854
0 votes
1 answer
185 views

Please I'm having an issue where I need to split a payload coming from an energy meter into chunks of 5-bytes each that represent different values of line parameters. The payload length is 35 bytes as ...
bquark's user avatar
  • 21
4 votes
2 answers
183 views

I am trying to make my own file compressor and some of the chars in the file that I am trying to compress are '�'. I tried: #include <iostream> int main(){ std :: cout << (int)'�'; ...
Jordon's user avatar
  • 103
0 votes
2 answers
157 views

In an excel cell, I have a large number represented as a string, lets say 12345689994765411. I am looking for a way to reverse the bytes inside that number to get the decimal representation of that ...
Manuel Selva's user avatar
  • 19.2k
0 votes
1 answer
80 views

I've a rabbitMQ implementation (C# with RabbitMQ.Client 7.1.12 nuget) where we send a short json to a queue. But when the receiver gets the queue item sometimes (approximately 1 on 5) the byte array ...
BvdVen's user avatar
  • 2,961
0 votes
2 answers
142 views

I am messing around with c#, and i noticed something. If i were to instantiate an sbyte with 8 bits, such as 0b_1111_1111 (-1), it throws an error, but if i were to first make a byte with it, and then ...
infinitychances's user avatar
-2 votes
2 answers
141 views

I want to add a byte after every third byte in a byte array. # This is an example of where the bytes would be added b'\xF2\xA1\x23{ADD}\xFF\x00\x05{ADD}\xE2\x20\x05{ADD}...' Usually, I have a byte ...
Nitroxy's user avatar
  • 50
0 votes
1 answer
49 views

The methods AI showed me are not working. However, one method mentioned by AI seems to be usable, but it is private: private CodedOutputStream(byte[] buffer, int offset, int length) So, how can I ...
21k's user avatar
  • 439
1 vote
2 answers
149 views

I would like to switch between different BYTE Arrays after user input. I need to apply the same processing to different arrays depending on user input, but I would like to avoid repeating the code. ...
Alex's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
522