base64 Questions
6
Solved
I have large Javascript objects which I would like to encode to base-64 for AWS Kinesis`
It turns out that:
let objStr = new Buffer(JSON.stringify(obj), 'ascii');
new Buffer(objStr, 'base64').toSt...
Tuckerbag asked 30/6, 2016 at 22:23
12
Solved
27
Solved
I want to decode a Base64 encoded string, then store it in my database. If the input is not Base64 encoded, I need to throw an error.
How can I check if a string is Base64 encoded?
Cenac asked 20/12, 2011 at 6:16
1
Let's consider the following codebase:
val str = "contextId"
println(org.apache.commons.codec.binary.Base64.isBase64(str))
String(java.util.Base64.getDecoder().decode(str))
It prints:
tr...
Rowan asked 9/2, 2024 at 10:43
5
Solved
I want to defer font loading on my site inspired by deferred font loading logic for Smashing Magazine.
Main part of this is converting fonts to base64 and preparing your CSS file. My steps so far:...
3
Solved
I am building an Ionic2 app. I am trying to convert an image url to a base64 image. I have found this which I am trying to make use of.
I have the following code:
var imgUrl = 'https://www.google...
Plowshare asked 21/1, 2017 at 10:47
3
This is a part of my TinyMCE config:
{
...
plugins: 'code paste',
paste_data_images: true,
...
}
When I add pics via simple drag and drop in TinyMCE, the local images will appear as Blob encoded i...
Semester asked 22/3, 2017 at 9:23
1
Solved
For example, I have a base64 code like this
const base64 = "H4sIAAAAAAAEAO2b0W6CMBSGz6MsXm+JUKi6N9gzLLsw4jYTo0bJbpa9+44Ig0J7kBW0PSENNG2B9vtjw09PfYVvmMAGEjw/QwiPmKdYTmEL66xuAics7eGI5QcI4AmPSXbd...
Waltman asked 28/1, 2024 at 6:56
14
Solved
Is there a freely available Base64 decoding code snippet in C++?
4
I would like to find the smallest possible, but valid (viewable) base64 encoded AVIF string for testing browser image support with javaScript.
I'm using this set:
const imgs = {
jxl: "/wr6HwG...
Iluminadailwain asked 19/11, 2021 at 10:45
2
I am relatively new to python and trying to install the base64 package through my cmd (that is system32/cmd.exe <- not sure if this is relevant).
I am using python 2.7.12 64 bit pip 9.0.1
My c...
Fania asked 11/11, 2016 at 16:26
10
Solved
I'm converting images saved in my Firebase database to Base64 and would like to decode and encode. I've researched similar questions, but am still getting errors. Here is what I have so far?
var i...
Rickrack asked 10/9, 2017 at 20:53
23
I have some data that is base64 encoded that I want to convert back to binary even if there is a padding error in it. If I use
base64.decodestring(b64_string)
it raises an 'Incorrect padding' erro...
1
Most numbering systems start with zero, go through the base-10 digits, and then go to letters once the base-10 digits have been exhausted:
Binary: 0,1
Octal: 0,1,2,3,4,5,6,7
Decimal: 0,1,2,3,4...
Sidewinder asked 13/12, 2017 at 7:42
3
Solved
I have image that is being generated in runtime on my website and I display it in html using
<img src="data:image/jpeg;base64,<!-- base64 data -->" />
Now, I want for Facebook to fe...
Icterus asked 27/8, 2013 at 8:19
12
Solved
Here is my code:
protected void SaveMyImage_Click(object sender, EventArgs e)
{
string imageUrl = Hidden1.Value;
string saveLocation = Server.MapPath("~/PictureUploads/whatever2.png") ;
Htt...
Waterloo asked 23/3, 2011 at 2:25
3
Since two weeks, I'm trying and reading to solve this problem, but everything I tried didn't worked :-(
I'm using python 2.7.
I do have, as far as I understand, a base64-string from the format: ...
10
Solved
I want to convert Base64String extracted from file(ex: "AAAAA....~") to a javascript file object.
The javascript file object what I mean is like this code:
HTML:
<input type="file" id="selec...
Malony asked 11/3, 2016 at 12:27
5
Solved
I have a Base64 encoded document which can be PDF file or image.
I would like to create a button in HTML5 page that opens this base64 in a new tab (or new page it does not matter)
I found this code...
Bili asked 17/12, 2015 at 16:27
4
Solved
I'm trying to find an exact equivalent to javascript's function 'btoa', as I want to encode a password as base64. It appears that there are many options however, as listed here:
https://docs.pyth...
Chiller asked 4/9, 2016 at 3:58
20
Solved
I need to convert my image to a Base64 string so that I can send my image to a server.
Is there any JavaScript file for this? Else, how can I convert it?
Spall asked 27/5, 2011 at 9:26
4
Solved
I am getting base64 for string from backend and i am then decoding it in Javascript to show on browser.
This string can be any file .pdf, .img, .docx, .zip etc.
My base64 string does not includ...
Ruttger asked 17/9, 2019 at 14:50
7
Solved
If I want to produce a Base64-encoded output, how would I do that in .NET?
I know that since .NET 2.0, there is the ICryptoTransform interface, and the
ToBase64Transform() and FromBase64Transform...
6
Solved
So in my jrxml file I have the following:
<parameter name="smileyfaceimage" class="java.lang.String"/>
Then I reference it in:
<image scaleImage="FillFrame" onErrorType="Blank">
&l...
Dorseydorsiferous asked 6/11, 2015 at 16:40
5
Solved
I have a text file which each line is a one word coded base64 separely. Now I want to decode it. I'm trying to use base64 command line, but I'm getting all the words in only one line, I want one pe...
Variegation asked 20/6, 2013 at 12:47
© 2022 - 2025 — McMap. All rights reserved.