11,253 questions
2
votes
1
answer
73
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
76
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
62
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
106
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
57
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
135
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
88
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
78
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
200
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
168
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
132
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
75
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
113
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": &...
0
votes
0
answers
525
views
converting file to base64 in n8n to upload it to odoo
hello guys i've been struggling with this for the past 3 hours
with chatgpt and every ai out there
i used this code to convert my output fom a "download image from ultramsg" http node to ...
0
votes
2
answers
136
views
base64 encoded image not showing in Firefox, but works in Safari
Consider the following MWE:
<html><body>
<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAEAAQAACAYAAAAY4xeyAAAFBUlEQVR4nO3TsQ0DAQwDMSX77+...
0
votes
0
answers
100
views
How to dynamically display Base64 client logos on all Power BI tabs without manual placement?
Problem:
I need to display client logos stored as Base64 strings in a SQL table across all tabs of a Power BI report. Manual placement on each tab is impractical. The logo must dynamically change ...
0
votes
1
answer
81
views
Produce a slash in base64 string to test base64url encoding
I have a unit test for a Base64 URL safe function that I want to make sure that it is properly handling three things:
Replaces + with -
Replaces / with _
Trims = at end
I want my unit test to have a ...
0
votes
1
answer
95
views
Trim Base64 audio string using AudioContext
I am looking for a way to trim a Base64 audio string based on starting and ending positions (ms).
I need to be able to trim the audio based on 3 inputs:
Base64 audio string
starting position (ms)
...
3
votes
2
answers
357
views
Decode a base64 string and encode it as hex using xxd
First, I take a base64 encoded string and decode it:
local base64_str="OQbb8rXnj/DwvglW018uP/1tqldwiJMbjxBhX7ZqwTw="
echo "${base64_str}" | base64 --decode > foo.txt
The size ...
0
votes
1
answer
39
views
Is there a character limit to encoded commands for VBS? [duplicate]
First of all I am a noob in terms of VBS. So of this question does not make sense, please bear with me.
I have created a PowerShell script that I wanted to be launched via .vbs file.
I have ...
0
votes
0
answers
187
views
Can I determine the file type of a base64 string, based only on the signature in C#
I am creating an API call where the user can provide a file in base64 format together with the filename.
I am searching for a way to verify that the provided base64 string matches with the extension ...
0
votes
1
answer
87
views
I'm having a problem with the NextJS blurURLData base64 function for plaiceholder
I'm new to using nextjs and Typescript and was wondering how can I access an object of an array which I'm already mapping through.
The main goal of this base64 function is to generate a BlurURLData ...
1
vote
3
answers
78
views
What's the maximum string length one can log using android.util.Log?
I could not find on Android official documentation any reference about, what is the maximum String lenght allowed to be placed in the text content ? ( not in the Tag, of course ).
In the case of not ...
0
votes
0
answers
30
views
SSRS / Report Builder render an Image from a long base64 field (17K+ Characters)
Using Microsoft SSRS and Report Builder,
We are trying to render an image saved in the Database as base64.
In some instances the base64 generated is very long (17,000+ characters)
In this situation, ...
0
votes
0
answers
122
views
How to tell is my string is base 64 or actually HMAC Sha256
I am sending webhooks to our partners and signing the webhook via HMAC Sha256. I am using this code:
public static string HmacSignature(string message , string secretKey)
{
byte[] keyBytes = ...
1
vote
1
answer
95
views
python base64 string - how to decode first 8 bytes
I'm having some problems decoding what should be simple data.
I have a base64 string that represents a np.int64 followed by an array of np.float64. The size of the array is defined by the first np....
1
vote
0
answers
119
views
When use the Conversion Filters convert.base64-encode between php://filter and data://, data loss may occur in versions up to PHP7
<?php
$data1 = file_get_contents("php://filter/convert.base64-encode/resource=data://text/plain,111111111");
$data2 = file_get_contents("php://filter/convert.base64-encode/resource=...
2
votes
1
answer
134
views
How do I convert a Base 64 encoded md5 hash back into its hex representation in Ruby?
I'm trying to convert a Base64 encoded md5 hash into its hex representation using Ruby.
i.e. "+4aRl0iJ84yd/l1oZcT8ww==" becomes "fb8691974889f38c9dfe5d6865c4fcc3"
I've tried using ...
-1
votes
1
answer
137
views
sun.misc.BASE64Encoder to java.util.Base64 migration problem
There is an old project at work that was written in a version prior to Java 8.
We are migrating this project to Java 11. In the old project, there is a method that takes a password variable and ...
-1
votes
1
answer
100
views
Python Selenium: How to retrieve base64 captcha image and store as jpeg
I am new to selenium and want to store a captcha image from a html page where it is stored as base64.
I tried using below code but the result is different than what i see by manualy checking the ...
0
votes
1
answer
226
views
Playing base64 audio chunks in Swift
I'm receiving audio chunks over WebSocket and storing them in an AVAudioPCMBuffer for playback using AVAudioEngine. However, when I start playing the audio, I hear noise instead of the expected sound. ...
2
votes
0
answers
181
views
How to generate SHA256 of GitHub App private key (in Base64 format)
My goal is to verify the private key I downloaded from GitHub for my created GitHub App (Not OAuth-App!). Once I downloaded the key, GitHub showed me the SHA256 of the key:
Because the other keys I ...
0
votes
1
answer
94
views
Error MEDIA_ERR_SRC_NOT_SUPPORTED when decoding Base64 text into a file
I am currently trying to create a web app using Vue.js in the Front-End and a Flask server on the Back-End to process videos.
The idea is that I upload a video from the Vue client-side code send a ...
2
votes
1
answer
136
views
Error converting base64 to real image - file could not be opened
I am trying to convert an image stored in a MySQL Database to a real image.
I am able to download the image, decode it and transfer it to a folder. However, when I try to open the image I get the ...
0
votes
0
answers
73
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
1
answer
700
views
How can I avoid corrupt xls files when attaching them in outlook using power automate?
I have a flow in Power Automate that runs on a recurrence trigger. It retrieves multiple .xls files from a folder in OneDrive and sends them via the Outlook application.
The problem I'm facing is that ...
2
votes
1
answer
166
views
Issues Generating Barcode in data:image/png;base64 Format with Custom Size and No Text
I’m working on a Python project where my goal is to generate barcodes in the data:image/png;base64 format, without any human-readable footer text. Additionally, I need to adjust the size (height and ...
0
votes
0
answers
79
views
Decoding Base64-URL Ciphertext to Retrieve Expected Flag Format
I'm working on a challenge where I was given an encoded string:
VFRJZ2NuM2ROZU1fTFNNQ0Z6R0Bfbk8xR2RwTlMwX2hfdUJSb19JM31Ve1ozZF8zXzdORWZu
I know this is Base64-URL encoded because it contains ...
0
votes
1
answer
771
views
Pump.fun Create tokens blockchain decode data
I get this metaplex program log in the blockchain (metaqbxxUerdq28cj1RbbAWkYQm3ybzjb6a8bt518x1s)
How do I decode it so I can get this token data?
{
"name": {
"type": "...
0
votes
1
answer
161
views
How do you decode a Base64 string that has been saved to a file in Android using Kotlin?
I'm trying to save an image to a file in Android using Kotlin. I plan to store other data in the file besides an image. In order to achieve that I encoded the image into a Base64 string.
More ...
0
votes
0
answers
111
views
How to render a base64-encoded PDF in an iframe using PDF.js?
I am building a web app that needs to render a PDF from a Base64 string. I am using PDF.js to render the PDF in an iframe, but I am facing an issue where the document is not being displayed.
I first ...
1
vote
1
answer
60
views
API returns a PDF file (byteArray) and it needs to be downloaded using Javascript
When I execute API in SwaggerUI it returns OK and I get download link and it works.
It's used for PDF files, this is the kind of data
And I need to download this using javascript, I tried converting ...
1
vote
1
answer
122
views
Why is my S3-hosted image not showing in the PDF generated using kendo.drawing, while a direct image URL works fine?
I'm using kendo.drawing to generate a PDF that includes an image from Amazon S3, but the image doesn't display in the generated PDF. However, when I use a direct image URL (like this one), the image ...
0
votes
0
answers
108
views
cURL/API body request fails in local, Postman and production NextJS app but works in other environments (reqbin, hoppscotch)
I'm currently developing a mobile app that will have user purchases in it's interface. The payment flow occurs as follows: the user enters payment data in the appropriate fields in the application. ...
1
vote
0
answers
44
views
Problem with bas64 image-encoding via php
I have the following function that should convert a image form an url to a base64encoded inline-Image.
function imageToBase64Jpg($imagePath, $maxWidth=825){
$imageType = exif_imagetype($imagePath);...
4
votes
1
answer
74
views
Base64 JPEG image disappearing on page refresh
We have a corporate React Typescript project, in one part of which we scrape images from websites, encode to base64, write to the database and then display to the end-user.
Here is very simplified ...
0
votes
2
answers
82
views
Decode base64 url parameters with jquery
I want to be able to take a base64 encoded url string and retrieve the name and descriptor parameter values from it in jquery.
I have it working with the parameters not base64 encoded by getting the ...
1
vote
0
answers
62
views
Decoding Windows' Clipboard Pinned Items' File
So I have a Windows 11 PC with my password being saved in the clipboard as a pinned item, I forgot to write it down and after enabling my Microsoft account to windows I miss clicked using pin and ...
0
votes
0
answers
30
views
Stitching React Native streaming data back together
I'm using the react-native-live-audio-stream package to record.
I followed the instructions for in the npm
// yarn add buffer
import { Buffer } from 'buffer';
...
LiveAudioStream.on('data', data =&...