7,824 questions
3
votes
1
answer
46
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
42
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
49
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
18
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
78
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($...
1
vote
0
answers
32
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
62
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
82
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
25
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
50
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
183
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 ...
3
votes
2
answers
149
views
Ruby pack and unpack hex value does not return the same value?
I have a hex string of unknown (variable) length and I want to pack or unpack at any time to convert to bytes.
["a"].pack("H*")
# => "\xA0"
I'm getting \xA0 -- is ...
1
vote
0
answers
15
views
How to fix this error "Incorrect data types or column count mismatch when inserting rows" in GridDB
Cause: Incorrect data types or column count mismatch when inserting rows.
Solution:
Verify that the row data matches the container schema.
For Blob type, ensure the binary data is passed as a ...
-2
votes
1
answer
83
views
modifying items in byte[] arrays using loops (C#)
I got a byte[] array from an input file (ASCII text file) and I'm trying to delete all bytes of a pre-set hex value, without converting the array to string and without using lists.
This is the code I ...
0
votes
0
answers
14
views
How to implement onFragmented that is sent from server websocket java? (org.java_websocket.Websocket)
source: https://javadoc.io/static/org.java-websocket/Java-WebSocket/1.5.7/org/java_websocket/client/WebSocketClient.html#sendFragmentedFrame(org.java_websocket.enums.Opcode,java.nio.ByteBuffer,boolean)...