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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -