amazon s3 - create a temp image file for upload -


I have created an HTML5 image uploader using the canvas. I have image data

  Canvas.toDataURL ();   

Which

  data: image / png; Base64, & lt; Base64image string & gt;   

I have sent the above data to php which will be used to upload an image to the Amazon server.

I usually

  file_get_contents (path_to_file_to_upload); Amazon SDK is used to work   

and how can I now convert the code to file file_get_contents for uploading base 64 image data file.

I do not have permission to create a file in the server. Create a temp image and get file_get_contents data from that temp file ?? Pass the return value of base64_decode () instead of file_get_contents in the AWS SDK.



Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -