Linked Questions
220 questions linked to/from How can I convert an image into Base64 string using JavaScript?
10 votes
3 answers
7k views
How can I make Next.Js download all the external assets I used in my website and serve them locally?
I have been building a portfolio with a headless WordPress and NextJs. I wrote my own functions to get data from the GraphQl endpoint. Everything works fine. But I have media files (images, pdfs, etc.....
4 votes
2 answers
6k views
Can't upload base64 image using cordova-plugin-file-transfer
I'm trying to upload my image in base64 to my server using cordova-plugin-file-transfer and until now it's not working. My code is like this: photoBase64 = photoBase64.replace('data:image/png;base64,'...
0 votes
1 answer
11k views
the image in html in not displaying when sent as email through nodemailer -node.js?
I am sending an html email using nodemailer in node.js, I am sending using the templates concept of the email-templates npm package [https://www.npmjs.com/package/email-templates]. Here, the email is ...
2 votes
1 answer
10k views
How to convert local image file to base64 in Angular?
I have an image locally in a folder: assets/img/xyz.JPEG and I want to convert it to base64. Kindly provide the code necessary to do so in Angular 8 I tried using file reader and btoa but didn't work....
3 votes
3 answers
3k views
Comparing 2 imageData objects
I have 2 imageData objects which I get from the same canvas through the same context. But when comparing them, they are not equal when I would think they would be as they should contain the same data: ...
7 votes
2 answers
10k views
How can I crop an area of an image using JavaScript?
How can I crop an area of an image using JavaScript? As I have read, I must use a canvas to project the image on it. With the following code I am cutting an area of an image, but the size of the cut ...
-1 votes
1 answer
29k views
how to upload image from frontend to backend
I have a button called Upload Image.On click that button,a modal is opening. There is two different field called Image Title, Input File. On submit the Save button. It will go to the image.js file. I ...
1 vote
2 answers
10k views
Upload image to server angularjs
I need to upload an image taken from my mobile device to my server. I found the angular-upload library to which makes reference. I need to do is to transform the image base 64, send it by post to my ...
1 vote
1 answer
10k views
How to read data from blob file?
My web application (JavaScript+HTML) is loaded into WebView and runs as a native UWP app. This app creates an image, gets image data as a blob and returns blob path (blob:ms-appx-web://5c9b0d94-65fd-...
5 votes
1 answer
10k views
Angular Base64 file upload as JSON
I'm trying to create a reusable directive in my app that allows for files to be encoded as base64 then uploaded via JSON. I haven't seen my resources on the web talking about this approach. I've ...
4 votes
2 answers
5k views
How to insert an image into Word from a URL
I am currently working on an Office.js add in for Word and I am trying to insert an image from a given Url. I was reviewing the Office.js documentation which is located at : InlinePicture class (...
3 votes
1 answer
9k views
How to send a base64 encoded image to a FastAPI backend?
I'm using code from this answer and that answer to send a base64 encoded image to a python FastAPI backend. The client side looks like this: function toDataURL(src, callback, outputFormat) { ...
0 votes
1 answer
8k views
Ionic 2 - Need to convert image from an url to base64 string
I am getting file url from server through http.post request. I need to convert image to base64 string for database storage. Please let me know how can i convert image from an url to base64 string in ...
2 votes
2 answers
5k views
How to get multiple files via ajax and download them as a zip file via JavaScript?
Would it be possible to create a client-site only application written in JavaScript (that runs in a browser) which gets multiple image files via ajax, then compresses them as zip (or tar or whatever) ...
3 votes
2 answers
7k views
How to convert blob to base64?
axios .get(RequestURL, { responseType: 'blob', withCredentials: false }) .then((response) => { let imageNode = document.getElementById('image') ...