Questions tagged [base64]

Base64 is a set of encoding schemes that represent binary data in an ASCII string format.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

How to convert image to base64 String

String img64 = base64Encode(bytes); String img642 = base64.normalize(img64); String img6421 = "data:image/jpg;base64,${base64.normalize(img64)}"; I am trying to convert an image to base64 ...
ialyzaafan's user avatar
1 vote
0 answers
35 views

Flutter:base64 image not displayed when the image is big

I'm displaying list of images in my flutter app where I get the String (base64) from my api and I display the image using this code : Image.memory( base64Decode(imageUrl), width: double....
Gos Cb's user avatar
  • 43
1 vote
0 answers
17 views

Decode base64 to array of floats

I have a 768 length array of float values that have been tokenized and are stored in a string field in an Athena table. I want to extract from that string the 768 original float values. In python, ...
David's user avatar
  • 31
0 votes
0 answers
36 views

how to get laravel uploaded file path when converted from base 64

I am trying to path of the uploaded file. The file is sent in base64 when laravel receives it laravel converts it to a file and uploads it to storage folder. preg_match("/data:image\/(.*?);/&...
etranz's user avatar
  • 965
0 votes
0 answers
14 views

LegiScan API getBillText hooks

For a given bill, with an associated document_id, I want to retrieve the text. Per page 16 of the API User Manual these are Base64 encoded strings of the MIME document object. The trouble is making it ...
Jacob's user avatar
  • 1
0 votes
0 answers
46 views

C# OAuth Bearer Token - "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters

"The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters." I am getting Bearer ...
msbyuva's user avatar
  • 3,467
0 votes
1 answer
51 views

How do I pull a thumbnail from a JPG , convert to base64, then display that in Tkinter (Python)

I'm trying to show a file listing with details of files including size, dimensions, and thumbnail. Most of this is pretty straightforward, but I've tried days of searching for various posts and guides ...
not_a_generic_user's user avatar
0 votes
1 answer
14 views

How to I shorten this base64 line by 4 characters?

i'm working on a geometry dash private server and I need to replace the original database link (aHR0cDovL3d3dy5ib29tbGluZ3MuY29tL2RhdGFiYXNl) with my own but every time I encode my database link it ...
GoodCat's user avatar
-1 votes
0 answers
24 views

Is there an equivalent in C# to javascripts FileReader .readAsDataUrl method?

I have some javascript code below that works for an incoming binary image string: export function convertAttachmentBody(binaryString) { let my_uint8_array = Uint8Array.from(binaryString, c => ...
erikrunia's user avatar
  • 2,369
-1 votes
1 answer
99 views

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xeb in position 0: invalid continuation byte

I'm trying to decode the following string in Python: ...
osama's user avatar
  • 1
0 votes
0 answers
28 views

POST request with file, data, auth, headers

I want to create a POST request that sends data and a file to a web site. There is a password and a username that is required, also a action header. The file needs to be base64 encoded. All data needs ...
OneNewBee's user avatar
0 votes
0 answers
30 views

Blob to image not showing

Fetched the blob using 'fetch' but after converting it to base64 then to image, it doesn't show up. I also tried using axios, but the same thing happens. I tried this and it works just fine. I also ...
kim's user avatar
  • 31
0 votes
0 answers
9 views

Multiple overlapped (css, grid) images to one composited image as jpeg/png or base64?

There are 2 css columns grid with 3 overlapped images in each column. There is not HTML5 and as follows there is no canvas element. That is: 1st column - image13(top) is placed on image12 which is ...
CpServiceSPb's user avatar
0 votes
2 answers
30 views

Base64 encoder truncates returned Sting

I’m displaying an image file in a HTML img tag using a data src URL that contains the image data in 64 byte in encoded format. When I get the string from the encoded bytes, its terminated to a ...
glez's user avatar
  • 1,164
1 vote
1 answer
21 views

Open PDF from Base64 in React

I want to open my PDF file that is on server. I get his binary representation and content type. I currently have this function: function handleViewFile(base64Content) { try { const ...
Friki's user avatar
  • 327
0 votes
1 answer
86 views

The input is not a valid Base-64 string how to solve

I have the following code: var test = "eyJhbGciOiJSUzI1NiIsImtpZCI6IlRlc3RDZXJ0IiwidHlwIjoiYXQrand0In0"; var base64EncodedBytes = System.Convert.FromBase64String(test); var hidenString = ...
Iria's user avatar
  • 19
0 votes
0 answers
32 views

in Javascript, how to modify a base64 image?

I am using Vue.js and Three.js to render alpha textures. The alpha information is held in the alpha channel of my textures. However, in Three.js, alpha values are ignored: .alphaMap : Texture The ...
Martin REPPERT's user avatar
-1 votes
0 answers
30 views

img src does not work on if statement, only on elsif

When trying to update a picture on my website it crashes when changing it on the "if" statement, but not on any "elsif" nor anywhere else I paste the image link in the code. I fail ...
Chillai's user avatar
0 votes
0 answers
47 views

How to extract prepended IV from ciphertext during AES decryption in dart

I'm trying to use AES encryption & decryption (cbc mode) and am able to successful encrypt the input text and prepend the IV (encoded base64), but I can't get the decryption to work. I'm sure ...
Max Silverman's user avatar
0 votes
0 answers
21 views

How to improve the performance of Crystal Reports with base64 images from FTP server?

Our website is linked to a SQL server where we store our customers' data. We also store our customers' images on an FTP server. When we need to generate some online reports, we have to fetch the ...
Yaqub Ahmad's user avatar
  • 27.6k
-4 votes
0 answers
44 views

i have a filter that blocks atob btoa & eval i want an alternative for writing them in JavaScript [duplicate]

Help me with an alternative for writing a global function "atob" without using the direct reference, in HTML event attributes a.k.a. script tag without actually using the word atob but still ...
Steve Conder's user avatar
0 votes
0 answers
18 views

I get a CGI file from the server。It is compiled by luajit,iI want to compile it against it

It is compiled by luajit, but after I open it, its content is a long character that starts with Base64. I tried to use Base64 to decoding, switching a lot of codes, still garbled, unable to decod it. ...
hola's user avatar
  • 1
-1 votes
1 answer
51 views

Base64 pdf with size > 3MB not loading with iframe

Base64 PDF iframe is not displaying on Chrome. PHP/HTML: <?php $pdf = base64_encode(file_get_contents('https://freetestdata.com/wp-content/uploads/2022/11/Free_Test_Data_10.5MB_PDF.pdf')); ...
john's user avatar
  • 1
2 votes
2 answers
53 views

Blob generated from base64-encoded png image within FormData instance recognized as application/octet-stream on server-side

Okay so I have a correctly, base64-encoded png image, that I convert into a Blob as such: const match = imgBase64String.match(/^data:image\/(\w+);base64,/); if (!match) { throw new Error("...
DevelJoe's user avatar
  • 898
0 votes
2 answers
78 views

Out of string space when decoding base 64 to PDF in VBA

I'm getting the aforementioned run-time error 'Out of string space' when decoding a base 64 string into a PDF document. This obviously only happens when decoding larger documents (164 page PDF in this ...
Drawleeh's user avatar
  • 249
0 votes
0 answers
36 views

printJS having issue while printing base64 to pdf in safari browser

Unable to print in Safari browser using printjs to print base64 to pdf. It works well in Chrome but on Safari it opens the print window but with no data. Here is the sample image of the issue Here is ...
PRITAM DEBNATH's user avatar
0 votes
0 answers
20 views

Decoding Help for Firestore Bytes

I have a weird compressed Bytes format returned as a String from a firestore database. I am trying to decode into a human-readable format. '\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03åVÛNÜ0\x10ý\x95UTõi+...
pb-0's user avatar
  • 1
-1 votes
0 answers
46 views

Send already base64 encoded string to app.get and decode inside the function creates corrupt file [duplicate]

app = FastAPI() @app.get("/prediction_api") def make_prediction(file1: str): #decode base64 string data decoded_data=base64.b64decode(file1) #write the decoded data back to ...
Harun Harman's user avatar
0 votes
1 answer
33 views

How to convert an image stream to an img elements src?

I'm receiving what I am assuming to be a jpeg image stream from a request. I want to turn this into something usable as am image elements source. I've tried many methods but I continue to get an ...
gahren's user avatar
  • 3
0 votes
4 answers
98 views

Decode .jpeg image from string

In my JS script I'm receiving string with encoded image.jpeg. The image is created with OpenCV in C++: cv::imencode(".jpeg", rgb_img, jpeg_data); std::string jpeg_string(jpeg_data.begin(), ...
DR4NKR1D3R's user avatar
0 votes
1 answer
14 views

My file pathe is content://com.android.providers.media.documents/document/document%3A1000095307 but i can not convert base64 (pdf,doc,excel) in kotlin

How to covert to pdf, doc, excel file which choose in application in base64 string I got this content://com.android.providers.media.documents/document/document%3A1000095307 but i can not convert ...
Rahul Routh's user avatar
0 votes
1 answer
74 views

Is it possible to encrypt in AES without special characters?

Good afternoon, I am currently working with an api in JAVA and Quarkus, in it I am receiving through the GET method a parameter in the url that is encrypted with AES, the issue is that the encryption ...
Cesar Justo's user avatar
-1 votes
1 answer
71 views

Decoding Base64 string to Integers in SQL

I have a MySQL database that contains data saved as Base64 encoding. The encoded data are sequences of integers(uint8). I would like to decode this in MySQL. I have tried using the function '...
EyalG's user avatar
  • 25
1 vote
1 answer
48 views

python base64 decoding encoded image to PIL and saving it as png

Hello I want to decode a base64 string that is an image that I have encoded using JavaScript the way I encoded it was I turned it into a bitmap then encoded the bitmap now I am trying to decode it in ...
Ian's user avatar
  • 13
0 votes
0 answers
24 views

How to play base64 audio string through speakers in nodeJs

I have a web audio chat that sends audio between clients through the server via socket io. When the audio data is sent to the other clients, it also sends the audio base64 string to a UDP port. How ...
XTS25000000000's user avatar
-1 votes
1 answer
53 views

Display image from base64 code of api response

Iam trying to execute an api. Its response will be an image in base64 code. API working fine and Iam not getting image. Tried few methods but not worked. API response sample: {"status":"...
Ravi's user avatar
  • 33
-1 votes
0 answers
58 views

Instagram Email Login Token

I was looking at Instagram’s email login url, and found 2 variables. uid and token. I found out that uid is the userid encoded to base36. Also there is a token which is 5-6 characters long. Also found ...
Uygi's user avatar
  • 1
0 votes
0 answers
29 views

how do i convert a normal int to a 12bit long binary code, to then convert it to 2 letters with Base64?

I have multiple positive integers, which all hold numbers that can be represented by 12 bits or less. I need to convert each value of each integer to a 12 bit binary code, and then split each 12 bit ...
Daveik's user avatar
  • 1
0 votes
0 answers
31 views

Cannot access entire content of file using Uri provided by Photo Picker(Android)

I am trying to parse the file that corresponds to the Uri that I recieve from the Photo Picker intent I tried making an InputStream as many people suggested on other questions, but it seems like it ...
Luca Strambeanu's user avatar
1 vote
0 answers
24 views

How to get output in UTF-8 from libraries like base64 [duplicate]

I have a base64 string in python that is not in ASCII format, so I want base64.b64decode(string) to output UTF-8 rather then ASCII. Sample base64 string: mBkVO/Me3Awiy94yFCagxA== Sample output: \x85\...
inyourface3445's user avatar
0 votes
1 answer
37 views

download a file with redux async thunk

I have a react redux application and a django server. My django server has an endpoint where I pull a file from s3 and base64 encode the file and return the encoded string. When my redux fetch action ...
Rob Campbell's user avatar
1 vote
1 answer
32 views

Replace imageUrl field in json with base64 encoding of the related image

I need to import a large set of data into my weaviate DB, for it to work I need my images base64 string encoded. I've got the following .json file with a list of objects exported from SQL: [ { ...
Johannes Schober's user avatar
0 votes
0 answers
16 views

Making the redirect URL in my code with qrytype parameter from HTML extracted from GMAIL Body using GMAIL API

Guys I am trying to extract link from gmail body from the link tag but there is also an extra querytype parameter. And the link I am extracting is showing invalid. I researched online and to my ...
Vaibhav Joshi's user avatar
1 vote
0 answers
19 views

Why use new FileReader reader approach to convert to base 64 when you could just use btoa()

I am working on an application in react that uses an api and to make a post we have to send an image in base64 . I was looking on stack overflow and saw this example: function getBase64(file) { var ...
Elise J's user avatar
  • 11
0 votes
0 answers
53 views

All values of type String of all HashMap became {"bytes":"","empty":false} suddenly

An confusing error has occurred to one of my containers running stably in production environment. All values of type String of all HashMap became {"bytes":"","empty":...
holy potato's user avatar
1 vote
2 answers
65 views

batch script file - store the standard output of decode base64 utility to a variable

i am writing a batch script file (.bat) where i need to decode a base64 (Base64 utility for Windows) text and them encode to hex. I can do this. The problem is that i need to store the result in a ...
C. M.'s user avatar
  • 13
0 votes
0 answers
45 views

How to unzip the base64 encoded zip files using java

I having a zip flders as base64encode. I need to unzip the Base64zip files and store it into new folder path. public class UnzipBase64ZipFolder { public static void main(String[] args) { ...
Vignesh Ramamoorthy's user avatar
0 votes
0 answers
51 views

Decoding Base64 text result in gibberish

I have a python script which scrape data from AJAX requests, ie: N4IgygDg9gTgLgZxALlE5BtUBjdICMIANCACZ4DCAhgDbYCWUxIAdlQG7soH4AszbTgH04AUxgBbbgHYADCAC+...
Longino's user avatar
  • 120
0 votes
0 answers
29 views

How to send a video file trough node js server?

I have a node js app that I want to have a file sharing capability. This is the code that takes the file from html input: var file = document.getElementById('file-selector').files[0]; var reader = ...
SITRUUNA's user avatar

1
2 3 4 5
224