1,756 questions
6 votes
0 answers
116 views
partially decode, stream and filter big data with tensorflow_datasets (tfds)
I have two issues (Note that this code is generated in google colab): Issue 1 I want to stream the droid dataset, which is almost 2TB big. I want to only use data which matches my filter conditions. ...
1 vote
1 answer
54 views
How to determine if a BER ASN.1 identifier uses one or multiple octets?
I'm implementing a parser for BER-encoded ASN.1 data, and I'm confused about how identifier octets work. According to the ASN.1 BER rules: Each identifier octet encodes class, primitive/constructed, ...
-2 votes
0 answers
71 views
Encoding full payload and decoding in server in REST
WAF is showing some errors due to including some HTML tags in my payload responses (mostly field-like messages and user guides). Sometimes, I am also sending R programming language code to the server, ...
0 votes
0 answers
42 views
RabbitMQ Configuration Entry Encode / Decode problem
I am working with RabbitMQ v3.12.0 which is running on Erlang v26.0.1. on a Windows 10 machine. The problem is that I am unable to successfully apply encrypted configuration entries. To simplify the ...
-1 votes
1 answer
92 views
Encoding and decoding text with special characters (àâäèéêë)
I am trying to encode the text in Angular : let encodedText = window.btoa("demoé"); //ZGVtb+k= When trying to decode the same text in C#, the conversion is not happening properly: string ...
1 vote
0 answers
93 views
Unable to decode the value of the data field of the instruction in the Solana blockchain transaction
There is such a transaction in the Solana blockchain: 5Tkjtr2SnhaTbchug5TzeBZj6eehjdnDCLm9z6Hb3xFAcVtM6rAv2Ecxtvi6N8RbnfkRuRKR7aJv61RRNSPRxW77 There are instructions in it: ('Instruction Details' =>...
5 votes
2 answers
101 views
How do I decode a bit string representing a n-digit number, where the 'n' digits were grouped and encoded in bit words of different lengths?
Background I am trying to decode a bitstring from a QR-Code, where the data was encoded in numeric mode. According to this QR-Code tutorial: https://www.thonky.com/qr-code-tutorial/numeric-mode-...
0 votes
0 answers
143 views
Convert Base64 ImageStream in .NET WinForms to images with Python
I have a very big WinForms application in the company I'm at and I want to extract all the images that are contained in it. I already wrote a program in python to extract basic images that are of type ...
0 votes
1 answer
60 views
Binary file base64 encode in js and decode in python
I want save an excel file as json in database. It is then downloaded in the python backend later on to create the excel file. My frontend to save excel file as json: const fileReader: FileReader ...
1 vote
2 answers
113 views
How to Handle Both Encoding and Decoding with Custom Error Handler in Python?
I'm working on a scenario where I need to handle encoding and decoding of strings using custom error handling in Python. Specifically, I want to create an error handler that can deal with both ...
0 votes
2 answers
86 views
Heap Buffer Overflow in findMedianSortedArrays Function in C (LeetCode)
double findMedianSortedArrays(int* nums1, int nums1Size, int* nums2, int nums2Size) { int* asd; bool flag1 = false, flag2 = false; asd = malloc(sizeof(int) * (nums1Size + nums2Size));...
0 votes
0 answers
64 views
how to convert response to image with decoding?
I was using this code on python previously with open(f"image.jpg", "wb") as fh: fh.write(response.content) and it was working fine, but now I changed lib for requests and the ...
1 vote
2 answers
103 views
Encoding in utf-16be and decoding in utf-8 print the correct output but cannot be converted into Python representation?
If I'm encoding a string using utf-16be and decoding the encoded string using utf-8, I'm not getting any error and the output seems to be correctly getting printed on the screen as well but still I'm ...
-1 votes
1 answer
123 views
How to decode url like base64
my brothers. I have an encrypted link that is similar to base64. I have tried many times to restore it to its previous state, but to no avail. Is there anyone who can do that? ==...
1 vote
1 answer
215 views
How to decode Base64-encoded Protobuf data in JavaScript without a schema?
I am trying to scrape data from the betting site etipos.sk. The API response includes a Base64-encoded Protobuf string in the ReturnValue field. Here’s an example of the API response: { Result: 1, ...