Using php I need to read an image to a byte stream which has to be passed to a .NET web service. Can anyone provide me with a php code snippet to read an image to a byte array ? I am using using php 5.
thanks
Using php I need to read an image to a byte stream which has
Share
I don’t believe PHP natively supports byte arrays in the same sense that .NET does. However, you could try converting each character to its ASCII representation:
Source: http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_23325692.html