Hướng dẫn dùng application/octet-stream image trong PHP
Ngày đăng:
05/09/2022
Trả lời:
0
Lượt xem:
127
My application is having images sent to it from mobile devices with the content-type "application/octet-stream". I need to process these images using the GD library, which means I need to be able to create an image object from the data. Typically, I have been using imagecreatefromjpeg, imagecreatefrompng, imagecreatefromgif, etc, to handle files uploaded from web forms, but these don't seem to work when coming to me as application/octet-stream. Any ideas on how I can achieve my goal? EDIT Here is the code I use to create the image identifier...my handler works perfectly throughout my site, the only difference I can tell between my site and the data from the iOS is the content-type |