Specifically for URL-safe base64 encoding. Uses -
and _
instead of, respectively, +
and /
. Padding with =
is optional. Source: https://en.wikipedia.org/wiki/Base64#URL_applications
Questions tagged [base64url]
107 questions
2
votes
0 answers
Decode base64-encoded PDF directly to string from Gmail Api in Node.js
I'm using the Gmail API to get an attachment that is a pdf file.
The Gmail API returns the attachment as a base64-encoded string.
Is there a way to convert the base64-encoded string (the pdf document) directly to a string?
function…

danielfrs87
- 117
- 2
- 6
2
votes
1 answer
How to use Base64.getUrlEncoder in Android Lollipop
How can i get the same result of this method using a lower Build.VERSION.SDK_INT in android:
@RequiresApi(api = Build.VERSION_CODES.O)
String result1 = "https://1drv.ms/u/s!AkijuZglD51udjvlclZWSNf_2wo";
String aa = Base64.getUrlEncoder()
…

Serenity Emmanuel
- 95
- 8
2
votes
1 answer
Convert base64URLEncode (in javascript) to php
I have a code in javascript. I want to convert it in php.
I don't know how to convert this: str.toString(CryptoJS.enc.Base64)
function base64URLEncode(str) {
return str.toString(CryptoJS.enc.Base64).replace(/=/g, '').replace(/\+/g,…

vannguyen
- 356
- 2
- 6
- 20
2
votes
1 answer
Can audio files be used inline in HTML?
Images can be used inline in websites using
;base64,”>
Does this also work for audio files (e.g. mp3)?

Cyman
- 123
- 4
2
votes
1 answer
Do I need to manually remove the = padding from a Base64Url encoded string in Dart?
I was surprised to notice that when I converted a string to Base64Url in Dart I got a string that ended with an = padding character.
import 'dart:convert';
main() {
String credentials = "username:password";
String encoded =…

Suragch
- 484,302
- 314
- 1,365
- 1,393
2
votes
0 answers
How to get multiple base64 value through loop
Context: I am using an input type file to upload multiple images. Then I create a new object for each image to retrieve data: size, name, base64Url. Then I use Ajax to send list of object to controller, then I handle each image file in a loop to…

J.Tran
- 115
- 1
- 8
1
vote
1 answer
How to treat long Data uri in codes
I use data URI, base64 to add images and videos to my games, but I found if I want to make a game with multiple videos it will be really bad code with more than 500 lines for each video, so is there any advice to treat this type of file, what I…

a_7md.f
- 33
- 3
1
vote
1 answer
JWT parsed by jjwt-java but showing invalid in jwt.io debugger
I am learning about JWS for authentication, and tried to implement using one of the java libraries jjwt. I created one JWT token string and added a single character to its end. To my surprise, jjwt library parsed it without throwing any exceptions.…

Kaustubh Dixit
- 91
- 1
- 10
1
vote
0 answers
convert base64 to image to dispaly in input type="file" -React
I have form with 4 pages , written in react. when I am clicking on next page the form data of this page are saved in sessionStorage and move to next page. so that if I am returning the previous page the form takes its values from the storage.
My…

Rachel
- 23
- 3
1
vote
1 answer
How can I generate JWT token using HMAC? How is the signature created?
I went to this website https://jwt.io/#debugger-io
Here I took the given sample info and passed it to my code.
But the encoded information that I got is not matching what is given on the website.
Since I am doing something wrong here, I am not able…

Pragyan
- 349
- 2
- 14
1
vote
1 answer
How to transfer image from server to client with node http header size restrictions
Transferring image (base64 encoded, created with Mapguide server) to client. I am able to output the image to the console and test it is correct. Using Node with npm and Vite for develpment web server. When I try to set imgLegend.src = data; I…

gbneff
- 11
- 3
1
vote
1 answer
How can we resize the image width of base64 when converting from image url?
I have a script with me to convert image url to base64. But i don't know how to resize the image width and that of height respecting the aspect ratio of the image before converting it to base64.