Display images stored as database BLOBs in a load balanced environment

We display images that we store as BLOBs in a database using a tag
like . This
creates a link like this which works fine in a single server environment, but in a load balanced
server it may end up being requested of a server that knows nothing about
it.

Any suggestions how we might achieve the same thing in a load balanced
environment?

Thanks,
Simon

Thanks for the suggestions.

I like the idea of hitting the web/database server once and spitting out a
page with images embedded, but browsers seem to implement the <img
src="data:image/jpeg;base64,{base64here}> option inconsistently, so we went
with Mark’s option.

The code that works for us in the viewimage.cfm page is

Simon

Hi,

You could grab the blob from the DB, convert it to base64 then use the <img
src="data:image/jpeg;base64,{base64here}> style to show the image?On 18 May 2016 at 11:17, Simon Goldschmidt <@Simon_Goldschmidt> wrote:

We display images that we store as BLOBs in a database using a tag
like . This
creates a link like this which works fine in a single server environment, but in a load balanced
server it may end up being requested of a server that knows nothing about
it.

Any suggestions how we might achieve the same thing in a load balanced
environment?

Thanks,
Simon


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/40c3b96c-1276-4192-af1f-570c2d3892e7%40googlegroups.com
https://groups.google.com/d/msgid/lucee/40c3b96c-1276-4192-af1f-570c2d3892e7%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.