2011/1/19 Whut Jia :
> Hi Sorin Manolache,
> According your ways(ap_send_fd()),it is work.The picture is returned to
> client.But myself-set cookie content are not returned , why??
> Begin sending jpg-file,I set a cookie in headers_out :
> r->content_type="image/jpeg";
> apr_table_setn(r->headers
2011/1/19 Whut Jia :
> Can I don't use sub-request??
> I want only a single picture to client;Just like the same as sending a text :
> r->content_type="text/html";
> ap_rputs("helloworld",r);
> return OK;
> Please help me !
> Thanks,
> ajxs
>
Try
apr_file_t *fd;
apr_file_open(&fd, "filename", AP
2011/1/19 Whut Jia :
> Can I don't use sub-request??
> I want only a single picture to client;Just like the same as sending a text :
> r->content_type="text/html";
> ap_rputs("helloworld",r);
> return OK;
Not sure what you mean. If it's a single static image, convert it to a
C byte array and send