Skip to main content
Filter by
Sorted by
Tagged with
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\...
Simplicissimus's user avatar
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 ...
user3840530's user avatar
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 ...
Rami Aboulissane's user avatar
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 ...
ulsbai's user avatar
  • 1
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($...
Dominique's user avatar
  • 17.7k
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; ...
Mervin Hemaraju's user avatar
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 = ...
Dominique's user avatar
  • 17.7k
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....
StealthRT's user avatar
  • 10.6k
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']...
Dani Baba's user avatar
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 ...
Ossama's user avatar
  • 2,443
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 ...
Amey Sawant's user avatar
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 ...
q9f's user avatar
  • 11.9k
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 ...
Thomas Richard's user avatar
-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 ...
maykuul's user avatar
  • 13
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)...
Erwin Darsono's user avatar

15 30 50 per page
1
2 3 4 5
522