Converting a byte array into an image using PHP and HTML

前端 未结 3 652
臣服心动
臣服心动 2020-12-03 20:11

I\'m using PHP to retrieve data from a SOAP service, part of which is a byte array of an image encoded in base64, and I\'d like to display that image in the browser. The da

3条回答
  •  悲&欢浪女
    2020-12-03 20:36

    Here is a complete example of browsing an image file .jpg and converting it into base64 byte format and sending it to server.
    Server script php will decode and save image to server.

    HTML

    
    
    
    
    
    
    

    PHP

    
    

提交回复
热议问题