Display attached image in both web and notes

I am sure this has been asked and answered somewhere, but I just finished a search of this and the 4&5 forums and didn’t find an answer to my problem.

We have a global phone book that is accessed in both notes and on the web. Users are given an upload control to attach a photo to be displayed on their record.

I have no problem getting the attached image to display on the web form, but the same code is not working in Notes.

In Notes, I’ve tried computed text, I’ve tried a computed image resource. I’ve tried both use and not using an <img tag in Notes, since I’m not sure the client recognizes those (although it does recognize a href=) and have tried just generating a url to the attachment, but so far no luck getting the actual attachment image to appear.

The code I’m using on the web is: (change { to [ )

db := @LowerCase(@ReplaceSubstring(@Subset(@DbName; -1); “\”; “/”));

thepic := @ReplaceSubstring(filename_picture;" “;”+");

picval := “{<img src=/” + db + “/0/” + @Text(@DocumentUniqueID) + “/$file/” +thepic + " width=150 height=175 border=1>}";

placeholdval := “{<img src=/” + db +“/PhotoNotAvail.gif border=0>}”;

editval := “{<img src=/” + db + “/PhotoUpload.gif border=0>}”;

@If(@IsDocBeingEdited; editval; filename_picture != “”; picval; placeholdval)

If anyone has the solution, or could point me to the previous thread(s) that address it, I’d be grateful.

Thanks.

Christy Zurcher

Aon Corporation

christina_zurcher@aon.com

Subject: display attached image in both web and notes

Your trying to display image in lotus notes using html; it’s not possible…

You can do in differnt way…

you have to maintain 2 differnt forms

  1. for Lotus notes

  2. for Lotus Domino (web based)

for web based you can use html (<img src)

For lotus notes if u want to display employee photo then you have to follow differnt way may be u can use Lotus Script then it possible. only 5 to 6 lines of code

Thanks

Jana

http://www.dominodesigner.com

cts_janardan@dominodesigner.com

Subject: RE: display attached image in both web and notes

Thanks Jana. I was hoping that since Notes client now supports some html (like a href) and some javascript that there might be a way to do it simply.

I’ll try using lotusscript in the post open or something then.

Christy