7,820 questions
0
votes
0
answers
63
views
What is the diffrence between a byte string and a normal string in python? [duplicate]
I have gone through dozens of articles, and this StackOverflow thread but I'm still as clueless as ever. The main points I have read everywhere and why I don't understand them are:
The main points I ...
0
votes
1
answer
92
views
C# String to literal bytes [duplicate]
I would like to extract text from a textbox and use it as a hexadecimal:
When someone types in "80" into the textbox, I want to be converted from string to hex "0x80", not "...
-3
votes
1
answer
63
views
I can't find the error in this code. It is x86 assembly
Input: unsigned char vet[] = { 0xBC,0xFF,0x01 };unsigned short int len = 18;
Output: short int minLung;short int maxLung;
Given a sequence of bits, determine the minimum and maximum length of ...
0
votes
0
answers
41
views
Comparing strings received as bytes
I'm running a python script that receives data over a TCP connection. This connection can send multiple messages that consists of multiple variables which have multiple data types. When a string is ...
4
votes
1
answer
81
views
Adding text file attachments to Keepass with pykeepass in python
I am trying to create and save KeePass entries using pykeepass and saving a .txt file as an attachment. However I get a type-error:
Traceback (most recent call last):
File "c:\Users\...
0
votes
0
answers
44
views
How to write a string containing binary representation of data to file? [duplicate]
I am trying to write a binary string as binary data to file but my function seems to be having a problem with the int conversion. I am reading a text file and manipulating it which gives me a string ...
0
votes
1
answer
71
views
Converting two property values from byte to string in a result array in powershell
I see a lot of questions and answer regarding converting a byte array into string however my case is quite different and I cannot for the life of me find a way to do what I need.
I generate a result ...
0
votes
0
answers
26
views
How to serialize mpf object to raw binary bytes or bytearray in python mpmath
I'm working on a python program that uses mpmath to implement the Chunovsky algorithm for computing pi. I want to make my program log its progress to a file on regular intervals, so that I can ...
1
vote
3
answers
81
views
How to show an array of bytes as a string-like list of characters?
I am using a TCP-client program to catch a list of bytes, and when I send such a list of bytes, this is what I see:
I want to capture those characters in a logfile, so I did the following:
log.Debug($...
0
votes
0
answers
44
views
Flutter Object Box store image from URL
Does anyone know how we can store images obtained from a URL to object box ?
This is what i currently have:
@Entity()
class ServiceModel {
@Id()
int id = 0;
@Unique()
final String identifier;
...
0
votes
0
answers
67
views
What's wrong with this string to ByteArray type conversion?
I'm taking over an old VB.Net application, and there is some information, written in a string. I'm trying to decode this into a ByteArray but this fails:
Here's the code:
Dim sixthColumn As String = ...
0
votes
2
answers
89
views
VB.net Hex to byte array translated to C#
Hey all I am getting the following error when running this code:
byte[] bytes = new[] {
Convert.ToByte("&H" + Conversion.Hex(127)),
Convert.ToByte("&H" + Conversion....
0
votes
0
answers
27
views
Exiftool doesn't include all metadata when ran from python
class Metadata(Enum):
bit_rate_kbps: int
sample_rate: int
channel_mode: Literal['mono', 'audio']
file_name: str # includes extension
file_size: int # mb
file_ext: Literal['wav']...
0
votes
1
answer
63
views
Decoding X32 Behringer mixer response
I would like help please to get the 4 Return meter values (post gain/trim, gate, dyn gain reduction and post‐fade) from the X32 behringer mixer, these are in 32 bits floats, little‐endian coded. to ...
2
votes
1
answer
186
views
Unpredictable value when converting byte array to int | Eclipse Temurin-17.0.10+11
Problem statement:
I am encountering an issue when running the following multi-threaded program. The program spawns a large number of threads (10,000) that process the same byte array value. The issue ...