Hi,
I am writing an Apache request handler which creates a png image on the
fly using libgd and send a "image/png" using the following code:
r->content_type = "image/png";
ap_send_http_header(r);
now i compile the image and want to send it using:
ap_rwrite(imgptr, gd_size, r);
where imgptr is the pointer to the image in memory.
This seems to be wrong because the browser doesn't display the image (it
seems to recognise it as being an image but it gives a size of -1).
Is this the corect way or am i doing something wrong?
Regards,
Erik Hofman