Linked Questions

187 votes
8 answers
494k views

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(...
Badal's user avatar
  • 3,817
0 votes
0 answers
582 views

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 ...
Diablo Rodriguez's user avatar
1 vote
0 answers
38 views

I have the following image that I send its src to PHP using Ajax: <img src="data:image/png;base64,...
user avatar
54 votes
16 answers
188k views

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 = ...
karan vs's user avatar
  • 3,404
3 votes
2 answers
48k views

how to take screenshot of canvas? or How create image, which will consist of image + free zone , located on canvas?
Герай Суинов's user avatar
6 votes
4 answers
22k views

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 ...
Kenny's user avatar
  • 144
4 votes
2 answers
16k views

I'm creating image using canvas and using following script, function getImage() { var canvas1 = document.getElementById("images"); if (canvas1.getContext) { var ctx = canvas1....
KarSho's user avatar
  • 5,746
7 votes
3 answers
19k views

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?
Simon Shrestha's user avatar
2 votes
1 answer
12k views

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 ...
xcalliber's user avatar
  • 305
6 votes
2 answers
6k views

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 ...
Creativefly's user avatar
1 vote
1 answer
5k views

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['...
nameless's user avatar
  • 1,531
0 votes
2 answers
7k views

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 ...
Ghazanfar Idrees's user avatar
3 votes
1 answer
6k views

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. ...
Joe Scotto's user avatar
  • 11.1k
0 votes
1 answer
7k views

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 ...
Diaconu Eduard's user avatar
0 votes
1 answer
4k views

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 ...
PeraMika's user avatar
  • 3,678
2 votes
1 answer
9k views

I have a problem saving a png image with php. I followed the suggestion of @drew010 as described here: https://stackoverflow.com/a/11511605/9117408 But when i try to open the saved image i got the ...
Andrea's user avatar
  • 164
1 vote
1 answer
5k views

Here goes my first post here, please be kind with your comments as I need detailed guidance here. Background, second-year college student, 1-year python trained. Only started learning javascript two ...
Ming Jin's user avatar
  • 341
1 vote
2 answers
4k views

I am trying to download an image to the server then send to client-side for local download, the image data will come from google charts. (Google chart currently doesn't support 'download chart as ...
clintgh's user avatar
  • 2,077
3 votes
2 answers
2k views

Laravel 5.7 upload_max_filesize = 200m post_max_size = 250m $request->hasFile('image') is returning null, even though I can clearly see the request holding an image key returning with a valid ...
clusterBuddy's user avatar
  • 1,554
1 vote
0 answers
5k views

I am using html2pdf to generate pdf-files. I want to save those files in the background on disk. I am using the html2pdf.outputPdf (jsPDF.output) with the argument "datauri" to make then 64-base ...
Erik's user avatar
  • 67
1 vote
2 answers
3k views

I've generated a base64 data of an image and fed it into the src attribute of the <img/> tag so now the image appears. But now next task is to upload the image file from the <img/> tag to ...
Temp O'rary's user avatar
  • 5,918
0 votes
1 answer
4k views

So I have this problem where I'm receiving a webp,base64 image format from an api, The image does not show in ios devices but it appears in Android. So is there a solution for those who use expo and ...
nix_'s user avatar
  • 9
0 votes
1 answer
3k views

In my cakephp program, I am converting a base64 encoded image to an image and then storing it in a folder. How can I validate this image, before conversion? The string is like data:image/png;...
user3398902's user avatar
0 votes
3 answers
3k views

I have the following code on my php file which is working fine, Its decoding a base64 string and showing that as a image on the webpage, but i want it to save it on a folder too. <?php $base = $...
Harish Kumar's user avatar
1 vote
2 answers
2k views

I am using VichUploaderBundle to upload images to AmazonS3 in symfony-2. I have followed this documentation https://github.com/dustin10/VichUploaderBundle/blob/master/Resources/doc/index.md and ...
user3425344's user avatar
  • 3,597
1 vote
0 answers
2k views

I have included the javascript in my project and FilePond works great on the FrontEnd, as you can see below: Here is the code in my HTML: When I submit the form this is what I get for filepond: Code: ...
gr8pr0gramm3er's user avatar
0 votes
1 answer
2k views

Beginner in API I have table post_tag which is posts table has relation ( many to many ) with tags table. my controller code ( every thing is good ): $post = Post::create($data); $post->tag(...
user avatar
-1 votes
1 answer
2k views

I am making a phonegap app, in which the user submits a photo from his camera, i get it in a Base64 encoding form. var posData=extImage1; $.ajax({ type: 'POST', ...
Zahema's user avatar
  • 1,413
1 vote
1 answer
809 views

I need to forward a POST request in Symfony but before forwarding I need to convert an image from base64 to $_FILES parameter. How can I do this?
Keloo's user avatar
  • 1,408
0 votes
1 answer
991 views

First, this is the first time i code both of web service and android (normally just android), so please bear with me. I tried to upload an image to the mysql (phpmyadmin) through the Codeigniter-...
Blaze Tama's user avatar

15 30 50 per page