11,249 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
0
votes
10
replies
93
views
Is there what the convenient way to store message and iv(in base64) together in a single variable or text file or in database cell using AES 256?
In AES any message itself has is a two walues. Ghgf6hGh== and ghyTgas9= for example. How to combine them together and send to another person. I thougth about json, but, json has symbols that is not to ...
2
votes
1
answer
80
views
yEnc encoded string of a blob is larger than base64
yEnc is a binary-to-text encoding scheme for transferring binary files in messages... yEnc's overhead is often (if each byte value appears approximately with the same frequency on average) as little ...
1
vote
0
answers
80
views
WordPress REST API: Large Image Uploads Not Reaching Backend Despite Proper PHP Settings
Problem Description:
I'm developing a chat application with image upload functionality using WordPress REST API. When users attach multiple large images (3 images), the request doesn't reach the ...
0
votes
0
answers
65
views
Base64ToString not converting XML string to readablestring
I am trying to convert an XML string to a string.
My XML code looks like this:
"XML": {
$content-type": "application/xml;charset=utf-8",
$content": "...
1
vote
1
answer
110
views
Decode base64 string with line wrap in Swift
RFC2045 base64 string has line length of 76 characters. And when in Swift, I can't find an option to decode it back.
import Foundation
let inputData = "Hello, testing Base 64 that can have ...
0
votes
0
answers
61
views
pymongo is not inserting document with base64 string
I have data which pymongo fails to upload, and, I cannot understand why.
Data available here
main2.py:
from pymongo import MongoClient
import json
client = MongoClient(host='localhost')
db = client....
0
votes
1
answer
148
views
rsa.ImportFromPem(privateKeyString) throws strange error in ASP.NET Core 6.0 Web API [closed]
using (RSA rsa = RSA.Create())
{
rsa.ImportFromPem(privateKeyString);
byte[] dataToSign = Encoding.UTF8.GetBytes(signData);
byte[] signedData = rsa.SignData(dataToSign, HashAlgorithmName....
1
vote
1
answer
95
views
Browser debugger shows less time taken to download a base64 over a multi-part file despite the larger file size [closed]
Today, I researched Base64 encoding versus other methods and whether to use it in a JSON API, considering the 33-37% size overhead that Base64 introduces and all sorts of related topics.
To ...
0
votes
1
answer
79
views
Inserting a binary image string (of a pdf) into Postgres
I have trying to insert a binary image string (of a PDF) into Postgres table from my Spring Boot Application. I'm using JPA for DB operations.
The corresponding field in my Entity class is declared as ...
3
votes
1
answer
234
views
How to decode and parse JEOL microscope metadata embedded in TIFF tags (binary format)?
I'm working with microscope images captured using a JEOL system, and I'm trying to decode metadata stored in the TIFF tags. The data appears to be in a binary format and when extracted (using tifffile ...
0
votes
1
answer
202
views
Document Attachment in Sales Order in Business Central β "Read called with an open stream" Error
Iβm trying to create a document attachment in Business Central using this API:
π POST /documentAttachments
However, I always get the following error:
Read called with an open stream or textreader. ...
0
votes
1
answer
106
views
Off by one byte; Need extra CR in base64 encoded MIME string for sending email attachment [closed]
I've got everything working excepting 1 byte! The PNG header has a 0x0d on the 5th byte. When I use this base64 function, it somehow strips that. When I receive the attachment, I can view it on a ...
0
votes
0
answers
142
views
How to use sharp.js to read a base64 input
I'm trying to get to grips with the basics of the sharp javascript library. But I'm failing dismally in my attempts to get it to read a base 64 string. My actual goal is to get this to work as part of ...
1
vote
0
answers
80
views
Why does canvas.toDataURL() return a very short base64 string when exporting Chart.js canvas?
I'm using Chart.js to render a line chart inside a <canvas> element. After the chart is rendered, I want to export it as a base64 PNG string using canvas.toDataURL("image/png").
...
1
vote
0
answers
128
views
How to properly decode the payload of a pubsub message in pyspark / databricks?
I have a pull subscription to a pubsub topic.
example of message I'm sending:
{
"event_id": "200595",
"user_id": "15410",
"session_id": &...