I am storing file data (pdfs, images, etc) in a database and using ADO to access the data.
I use the ADO field->getChunk(size) function to retrieve the data.
The problem is that echo does not work for outputting the data ... if there is a 0 byte in the chunk, echo treats it as a null terminator (as it should i suppose) and stops 'echoing'.
Isn't there a function like echo_buffer(size) or something? I've been researching this all day 😉