Linked Questions
58 questions linked to/from How to save a PNG image server-side, from a base64 data URI
187 votes
8 answers
494k views
Convert Base64 string to an image file? [duplicate]
I am trying to convert my base64 image string to an image file. This is my Base64 string: http://pastebin.com/ENkTrGNG Using following code to convert it into an image file: function base64_to_jpeg(...
0 votes
0 answers
582 views
file_put_contents save a corrupted image [base64] [duplicate]
I'm working with AJAX, and I sent a request with POST, in that request I sent a canvas generated image (dataURL). When request is finished, returns in console the generated image in base64. I take all ...
1 vote
0 answers
38 views
Validating base64 image sent via Ajax [duplicate]
I have the following image that I send its src to PHP using Ajax: <img src="data:image/png;base64,...
54 votes
16 answers
188k views
How to upload images to server in Flutter?
I would like to upload a image, I am using http.Client() for making requests, static uploadImage(String id, File file) { var httpClient = createHttpClient(); Map<String, String> headers = ...
3 votes
2 answers
48k views
How to take screenshot of canvas? [duplicate]
how to take screenshot of canvas? or How create image, which will consist of image + free zone , located on canvas?
6 votes
4 answers
22k views
Save Google charts as a image
So after hours of websearching, googling and overflowing i can't find the solution to my problem. I got a linechart from Google charts. I want to convert it to PNG, save it on the server en insert it ...
4 votes
2 answers
16k views
dataurl to image for download in php
I'm creating image using canvas and using following script, function getImage() { var canvas1 = document.getElementById("images"); if (canvas1.getContext) { var ctx = canvas1....
7 votes
3 answers
19k views
How to convert base64 to image in Laravel 5.4?
I am developing api in Laravel 5.4. I will receive the image in base64 format. How can I convert the base64 to image in Laravel?
2 votes
1 answer
12k views
how to save base64 image server side
how can i save image server side i have this code but for some reason the image that i upload to the server is saved as text/x-generic. what can i do to fix this? <?php function ...
6 votes
2 answers
6k views
HTML5 canvas - Sharing saved image to social media
Thank you for taking your time to read this post. i have looked through endless posts on this forum, but still are unable to achieve what am after. I have created a html5 canvas that save users ...
1 vote
1 answer
5k views
How to save base64 string as image server-side
I want to save a base64 string as an image (.png or .jpg) on my server. The string I get looks like this: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQA[...]" I tried this: $data = $_POST['...
0 votes
2 answers
7k views
save base64 image from javascript
I have a variable in JavaScript name as myImage which holds the base64 encoded string of an image like data:image/png;base64,iVBORw0KGgoAAAANSUhE...... Now I want to save this image on folder at ...
3 votes
1 answer
6k views
How to export image from cropit to php for upload?
I've been searching the internet for a while now and cannot find anything that tells me how I turn the result from $('#image-cropper').cropit('export') into an image that PHP can upload to the server. ...
0 votes
1 answer
7k views
Display image from database in Php page
I try to make online quiz with images questions, and i need your help/advice. My images is stored on database where have an id "image". My upload works fine, image is stored on database...but i can't ...
0 votes
1 answer
4k views
Intervention Image + Laravel's File Storage: Store resized/decoded base64 image (Intervention Image encode() doesn't work)
I am using Croppie jQuery plugin which returns the cropped image encoded in base64. After submitting the form (with the cropped image encoded in base64) - I decode & resize it using the ...