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?
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
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?