image on the header

Hi,
Can I use an image saved on database (into a blob fields) in the image of the Header Layout?

I’d like have one logo for every user saved on the user table, and show it (the logo) when the user login the application. it’s possible???

thank’s
massimo

Re: image on the header

When you put the files on the filesystem you can use this:

  1. Create a custom field that is not displayed e,g {header} (global didnt work for me)

  2. create function get_img_url(<username>) -> returns a string containing url like "<img src=‘http:localhost
    icardo.jpg’ ".

  3. in one of the events (i used onload):
    {header} = get_img_url(<username>)

  4. in form -> template -> header/footer -> header variables -> display field “header”.

Re: image on the header

Hi mxsx,
Did you get this to work using the blob field? I don’t want a ton of images on filesystem, just want to use the blob field in my mysql database to show up in the header, so each site has its own logo for an app I am working on. If you happen to see this and have some code, I would appreciate it.
Peace,
Jamie