1,755 questions
-2
votes
0
answers
51
views
Why do some Base64 decoders fail to handle large binary data correctly? [closed]
I'm working on a project that needs to decode large Base64 strings (often >10 MB) into binary files such as PDF or images.
When I use some online Base64 decoders, the output is either truncated or ...
0
votes
0
answers
33
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
91
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
84
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
91
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
131
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
58
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
95
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
80
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
59
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
100
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
118
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
votes
0
answers
158
views
gibberish result when decoding base64 content
first of all I have a very weak experience regarding encoding/decoding, and I have the following base64 - or at least ChatGPT said it's a base64 encoded! - REST APT response ( Content-Type: ...
1
vote
1
answer
197
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,
...
0
votes
1
answer
1k
views
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position ???: invalid start byte
I am working with byte strings that include non-ASCII characters, specifically Hebrew text, and I encountered a UnicodeDecodeError when trying to decode the byte string to UTF-8. Here's the ...