If you are serving these verbatim from the database with no other
processing, I think you should consider caching them in the file
system for much better performance.
You can do this by creating a 404 handler that checks if the requested
file could be got from the database. If it can, it wr
Do you get any error messages?
One thing you might need to do is to use an exact proc name ::serve_image.
You should also put an ns_log statement in that proc so that you know it is
being called, or not, maybe print out the url:
ns_register_proc GET /*.png ::server_image png
proc ::server_ima
What is the best way to serve script (*.js and *.css)
and image (*.png and *.svg) files which are stored in
a database?
I am successfully using ns_register_proc to catch and
dynamically serve html page requests.
I would also like to dynamically serve the script and
image files that are embedded i