On Tue, Feb 18, 2014 at 8:12 AM, Sam Kunun <[email protected]> wrote:
> Hi, > > Thank you for your prompt reply. > No, the image data is not embedded to executable. > > After testing, i found out that now i'm able to display image using the > first option. > "You can let mongoose send image data. In this case, set "document_root" > option and place image file into the document root. Return 0 from > begin_request() when image URI is requested/" > > Is there any other alternative ? > Well, there are only two options: either mongoose sends the file, or user code does. So the alternative is to send a file yourself: read in a loop and mg_write_data() several times, or mmap() and send it by one mg_write_data() call. Sergey. -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/groups/opt_out.
