Hi, I desperately need help from a php guru.
I am currently converting an asp.net site to php. The existing asp.net site retrieves images from a sqlserver database in the form of byte arrays. A byte array can then be instantly rendered to a page by using the following two lines (where bytArray is my byte array object):-
Response.ContentType = "Image/png"
Response.BinaryWrite(bytArray)
job done.
Simple huh! But can I find a way to do this using php? can I heck!
I have searched and searched for an answer but cannot find anything. I am learning php at the mo, have I missed something obvious? surely there must be a simple way to render a byte array to a php page?