Most voted "base64" questions
Base64 is a set of encoding schemes that represent binary data in an ASCII format string.
Learn more…70 questions
Sort by count of
-
19
votes7
answers22208
viewsIs using MD5 the safest way to encrypt passwords in PHP?
I know there are several methods of encrypting passwords in PHP (md5, sha1, Base64...) although I don’t know much about, what I see most is the use of MD5. Using MD5 to encrypt passwords is the…
-
14
votes3
answers9801
viewsWhat’s the encoding for in Base64?
Virtually every self-respecting programming language has its implementation of encoding and Decoding from a string to a string in Base64 characters. But what is the Base64 itself for? Thank you!…
base64asked 9 years, 9 months ago Rodrigo Rigotti 12,139 -
11
votes3
answers738
viewsHow to move Int to Base64 in PHP?
Base64 can store 6 bit at each character used. Assuming we are using int64 or uint64 we use 64 bits, which could be represented in ~11 characters. I tried to answer this question, but PHP fails to…
-
8
votes3
answers1791
viewsIs there any way to convert a string to base 64 in javascript?
Is there any way to convert a string to base 64 in javascript? In PHP we can do so: base64_encode('stack overlow'); //c3RhY2sgb3Zlcmxvdw== How can I do this in javascript?…
-
8
votes2
answers525
viewsCheck if the Base64 character set is an image
I have a data encoding called Base64 in this format below:…
-
7
votes2
answers883
viewsWhen to convert a bitmap to string Base64?
I know that in the past it was necessary to convert an image to string, because of limitations with SMTP. My doubts are: What is the use of this practice today? Is there any performance gain…
base64asked 10 years, 3 months ago Felipe Avelar 9,507 -
7
votes2
answers1889
viewsMethods of image storage
I am studying what is the best way to store some images of users that are registered in my system. I found 3 ways to solve this problem: Save to local directory, Save as BLOB and Save as Base64. I…
-
6
votes2
answers1505
viewsHow to insert an image into a CSS file?
I use a program here in the company that in its Web module it has its logo inserted directly in CSS something like: #logo img{ max-width:100%; background-image: 'data|base64=acSs....'; } How do I…
-
6
votes2
answers357
viewsBase62 coding
I wonder where I can get some PHP implementation, similar to MIME Base64 PHP but only with A-Z, a-z and 0-9 characters. The Base64 from PHP is quite versatile, but I need an algorithm that doesn’t…
-
6
votes1
answer476
viewsConvert Image to Base64 with Ionicframework
Is there any library that can convert images to base64 with the Ionic Framework? I tried to use the angular-Base64-upload, worked with the angular, but in the Ionic did not succeed. If anyone knows…
-
5
votes1
answer668
viewsHow does mega.nz work?
Mega (successor to Megaupload) has a different and innovative way of the other download site. Usually, download sites send the file and the download is done in the browser, but mega.nz downloads the…
base64asked 9 years, 5 months ago user28062 -
5
votes3
answers2025
viewsHow to save a Base64 image to SQL and save it locally as PNG
I need to know if it is possible to save a Base64 image in SQL and then retrieve it and save it locally as PNG or JPEG. I already know how to convert to Base64, but to download in all browsers this…
-
5
votes2
answers2039
viewsFile extension in Base64
I am doing a REST service and I need to receive an image by Base64, except that the image can come with any extension, as jpg, png, gif, etc. How to identify this extension and proceed with…
-
5
votes1
answer850
viewsHow to encode and decode Base64 strings in C?
I need to encode (and decode) a JSON to be transmitted from the Web to a microcontroller. The JSON that I am sending is encrypted with the AES 128, but the cyphertext It contains non-printable…
-
4
votes2
answers1662
viewsHow to convert to Base64 in C#?
I am using Webforms. There is a certain part of this application where I send, through Ajax, a string Base64, which is the code of an image. I’m used to using PHP and use the functions base64_encode…
-
4
votes2
answers1212
viewsCheck out of Base64?
I’m making an email application (Hapijs) and found that some emails have his text encoded for Base64, but others do not. In this application I will need to receive emails from all services (Gmail,…
-
4
votes2
answers3068
viewsConvert image to Base64 using Vuejs?
I have a <input type="file /> in Vuejs and when I select an image I want it to be converted into base64, because I will save the images in the database only in base64. What would be the method…
-
4
votes1
answer462
viewsSave Image in Database
In my system there is a registration of Professional who has the option to save the photo of Professional also, at the moment I am doing a photo conversion to Base64 with Javascript in the front-end…
-
3
votes1
answer3916
views -
3
votes2
answers654
viewsProblem decrypting hash in Base64
I was reading about an apache rule for validating permissions to access files/directories, and saw that the default file that reads the user and password was: usuário:senha (sendo a senha em…
-
3
votes2
answers928
viewsTypeerror: Incorrect padding
Guys I’m trying to decrypt AES, only I’m facing the following mistake: Traceback (Most recent call last): File ". /teste2.py", line 190, in main() File ". /teste2.py", line 186, in main…
-
3
votes1
answer1091
viewsWorking with Base64 image in Android Studio
I have an app in Android Studio and would like to use Base64 image in Imageview and Imagebutton. I already know how to convert the image (from Drawable folder) to String, but I don’t know how to…
-
3
votes1
answer148
viewsWait variable value to return function
I’m trying to create a function that turns a file into a Data URL. But I am facing a problem: The return value of the function is not what I expected. Just follow my code: File.prototype.toData =…
-
3
votes1
answer209
viewsIs there any way to convert a text into an image without using pictureBox in vb6?
Introducing I have a DLL in VB6 that is generating an array of javascript commands that will be executed on an Asp page to generate a PDF dynamically. So far, so good! In this PDF I need to generate…
-
3
votes1
answer594
viewsWhere do the names "atob" and "btoa" come from?
In Javascript, for example, we use the functions atob and btoa to manage codes in base64, decoding and encoding, respectively. The question is, where do these names come from?…
-
3
votes2
answers668
viewsString64 for image in Vuejs
I am receiving a database coded string 64 from the database and I want it to render as an image on the screen, my question is: Just set up the :src= with the variable that contains the string Base64…
-
2
votes1
answer5684
viewsManipulating Base64 images with PHP
I have some Base64 encoded images in PHP. I need to resize these images by setting a maximum size for them before storing in the database. How can I do that?
-
2
votes1
answer86
viewsConvert to list a string from a list that contains Base64?
I receive through a requisition json one request.POST that comes as a list of string Base64. I can convert to string with str(request.POST['imagem']) what results something like this:…
-
2
votes2
answers1023
viewsXml Tag base64Binary C#
I have the following xml tag (I’ll summarize for size): <docZip schema="procNFe_v3.10.xsd" NSU="000000000001868">H4sIAAAAAAAEAN1aWY+jyLJ+Pv..bla bla bla</docZip> The field type is…
-
2
votes1
answer2791
viewsCLOB for string and vice versa
I’m developing a web server where I have to store images in String of Base64 exchanged for desktop, mobile and website to the database of the Oracle, but I’ve done a lot of research and seen some…
-
2
votes1
answer1087
viewsHow to verify if a String is encoded in Base64?
I am working on an email application using Vuejs/Quasar on the client and Hapijs on the server, and some emails (depends on the sender) comes with the text encoded in Base64, and others not. Here…
-
2
votes2
answers234
viewsBase64 biometrics generating different codes for the same digital
I am having problems with the encryption of digital (biometrics) in base64 for passage of track parameter http. The problem is that each capture of the same digital are generated different codes, so…
-
2
votes1
answer671
viewsSQL save and return Base64 image
I am saving an image in SQL Server using the varbinary field(max). However, when I run the query to return to the front, I can only return by converting the field to sweep. My question is how to…
-
2
votes0
answers81
viewsC# Convert.Frombase64string returns different from PHP base64_decode
I’m doing the Decode in c# of a Base64 to be able to generate a Qrcode, in PHP it works normal but in c# the return of the Decode is different. This Base64 is created and encrypted by Serpro and…
-
1
votes0
answers127
viewsHow to use jqZoom on a Base64 image?
Situation: I have a small application where the user chooses an option from <select> and in that an image is loaded via javascript using Base64. Problem: The jqZoom plugin does not work…
-
1
votes1
answer472
viewscharacter error when decoding a variable from js to php
Good morning, I’m a problem that I do not know the reason, I have a code encoded in Base64 and I inserted this code into a js variable, from php to js, it worked more perfect impossible, ai I passed…
-
1
votes1
answer1791
viewsDecode Base64 mysql
I have a mysql database that some columns of it is encoded in Base64. I’m not familiar with programming to develop a script in another language that decodes. You can create a select in sql that…
-
1
votes1
answer2684
viewsDecrease a Base64
How to decrease a size of a Base64 without decreasing the quality so much? I’m trying a problem in this code,because it’s too big and it’s not saving in the bank. How to decrease ? Bitmap thumbnail…
-
1
votes2
answers875
viewsDecode data in Base64
I am working with metadata of an image extracted in Json format. One of these data is a binary string Base64. I read in documentation that these values are 16 bits. Is there any way to decode them…
-
1
votes1
answer1144
viewsSend . pdf, in Base64, by e-mail
I get a string through a API external, which comes directly from the client (I only take care of the website, making it impossible to change the type of information I receive). This string is a .pdf…
-
1
votes0
answers68
viewsDecrypt IMAP email?
I am receiving emails in my application through IMAP, and everything is appearing in the right way except the text that is encrypted, how do I decrypt or set up so it is not encrypted?? I’m using…
-
1
votes1
answer867
viewsBase64 Multer Nodejs
I used the multer in my API, I uploaded the image, all right, but I would like to use Base64, here comes the doubt (I do not know much about base64), what’s the best way to do it? I made one in a…
-
1
votes1
answer1686
viewsGet external website image as data:image/jpeg;Base64
Is it possible to save an image as an external website date using javascript or php? because this was the only way I could get q the image to appear in the browser, when inspecting this is the way:…
-
1
votes1
answer82
viewsSymfony 4 - How to save images with Formbuilder (Filetype) in Base64 in the Database(Mysql)?
Hello, I’m trying to make a form where the user just inserts an image. In theory, the image should be stored as a Blob file (Base64) in the database, but Symfony is storing "tmp/php/random value" in…
-
1
votes1
answer828
viewsHow to Save and Recover Images in Base64 using Mongoose in a Nodejs Service?
I need to save and recover an image in Base64 through a REST service developed with Nodejs. For this, I have created the following schema on Mongo: const userSettingsSchema = new Schema( { 'avatar':…
-
1
votes1
answer1044
viewsHow to generate, encode and encrypt random string in Flutter
I need to generate a 32byte code and encode for Base64, then Sha256 and Base64 again But apparently this code has something wrong and I can’t understand what it is var _random = Random.secure(); var…
-
1
votes0
answers373
viewsWhat size should I set to store a Base64 string in a VARCHAR field?
I need to store an image that is in Base64 in the mysql database... My doubts are: 1 - I must compress this string before saving to the bank, if yes what is the best way to do this? 1.2 - The Base64…
-
1
votes1
answer80
viewsIs it necessary to specify the MIME type in the src property when rendering an image in Base64?
I’m doing some image rendering tests on Base64 and I had some doubts. I realized that even passing the extension of the wrong image on mime type, it is still possible to render the image, in the…
-
0
votes2
answers625
viewsPhonegap: How to save an image taken and transformed into Base64 in the Bank?
I take a photo with an android application and turn into Base64, I would like to know how to save this Base64 in the bank along with other information I have on the page... This is my code that…
-
0
votes0
answers320
viewsHow to save an image base64_encode with more than 4000 characters in Oracle using php
I am trying to insert a base64_encode image with php in Oracle, but at the time of the Insert it returns me the following error: ORA-01704: too long string literal. The reason to return this error…