get image from base64 string

后端 未结 7 1969
逝去的感伤
逝去的感伤 2020-12-01 10:54

I am trying to take a base64 encoded string and return it as an image in php using $_POST. On line one if I use $_POST[\'imgdata\'] it returns erro

7条回答
  •  长情又很酷
    2020-12-01 11:41

    This is the One., Would you like the following i think.,

    
    

    The above code will generates the output as per your wish.,Try this..This may help you.

    Sorry For The Delay Reply.,Now Only I Recover My StackOverFlow Account After a long time.

    Note : Ignore the empty space's in before the starting '' tag on the PHP file you are using for image decode.,If any empty is on that file means it throws Error message and it doesn't create or show the original image after the decodes.

提交回复
热议问题