Rich Text Field and Picture

Hi, I have employee db with the picture of the employee in the RTF. What I would like to do is show it as a thumbnail in the header of the form. Any suggestions? I am using notes client.

Thanks

Subject: Rich Text Field and Picture

make a computed rich text field and show this in the header…however, rich text computation takes place only once…For picture updates in future, you will have to delete the computed field and create again using LotusScript

Subject: RE: Rich Text Field and Picture

I am looking to create thumbnail pic which will should be resized. What you are recomeding will create the same size of the picture.

Subject: RE: Rich Text Field and Picture

Pictures are not very programmable. It’s possible to do what you’re talking about, but it’s pretty complicated and not very efficient. Basically, you have to DXL-export the document, decode the base64 image data, write it to a file, and use passthru HTML in the form to put in an tag referencing the file. You’ll have to analyze the data to figure out how big the image is to know what height and width to use. See Calculating the dimensions of an image. This is one of those things whose solution is kind of interesting as a demonstration of several different difficult techniques applied to the same problem, but you wouldn’t want to do it in real life.

You might think about an alternative such as doing this processing in an agent – when the document is modified, you can generate the thumbnail and store it in another rich text field – so it takes a few minutes before the thumbnail is updated.