Hello
I am using computed text (with passthru HTML) to show an image map in the Notes Client. For test purposes I placed an image as an image resource and everything worked fine. I now wish to amend my code to calculate the path to the image on the local file system. I have listed below, the calculated html, which if used in an html page works fine. In the notes client, however, the image cannot be found. I tried using UNC to het to it but without success (again this worked in a simple html page). You will notice that the image is stored on a mapped drive. The drive is mapped on the domino server…
This is my first attempt at this so if I have done something stupid, please accept my apologies!
Subject: Image source on local file system
Try using the virutal path (say http://192.168.254/Public/Images/049/049_layout.jpg). Provide the Physical path only for editing or creating files.
Subject: Image source on local file system
I swear that I am NOT laughing at how hard you’re making this – I’m groaning. Your post states that you intially used the image as an image resource, and now you want to store the image as a file outside the database, on the server’s file system. Therefore you know about both ways of storing the graphic, and have made a choice, so I won’t try to sway you to ysing an image resource.
There are several reasons why the method you’re trying can’t work, but here are some ways that will:
-
Put the file in the server’s domino\data\domino\html directory and use src=“/049_layout.jpg”
-
Move/copy the \images subdirectory and all its subdirectories to domino\data\domino\html and use src=“/images/049/049_layout.jpg”
-
Leave the file where it is, unshare the directory if desired, add a URL->Directory mapping document in the NAB which maps, say, ‘/images’ to the server’s local path to the images directory (C:\data\public\images or whatever), and use src=“/images/049/049_layout.jpg”
(Note the use of slashes, not backslashes, in the urls above.)
To add the mapping document, you use one of two methods, depending on whether your server is configured to load its web configuration from web configuration documents (R5-style) or internet site documents (R6- style); see http://www.lotus.com/ldd/doc/domino_notes/Rnext/help6_admin.nsf/f4b82fbb75e942a6852566ac0037f284/c5d71f97f4de2c5d85256c1d0039089e?OpenDocument
and
http://www.lotus.com/ldd/doc/domino_notes/5.0/help5_admin.nsf/Main?OpenFrameSet&Frame=Topic&Src=%2Fldd%2Fdoc%2Fdomino_notes%2F5.0%2Fhelp5_admin.nsf%2F078c27b23262ffff852566dd0029426a%2F665ddb8f7f8e83888525673000549114%3FOpenDocument
Subject: RE: Image source on local file system
Hello
Thanks for your responses. I can understand your groan perhaps. I did post that this is my first ever attempt at this and that this is purely for the notes client. I was in fact trying to make it easier for myself. The images (hundreds of them) already exist on the local file system and are used for many different purposes. Moving them is undesireable as it will impact other systems - as I mentioned in my post, I used an image resource purely for one test - I don’t really want to create hundreds of new resources that will have to be maintained - images are added/ removed/edited by another team. It just seemed easier for me to reference them in their current location.
Thanks for the suggestions on how to overcome the situation. Can you confirm whether this will work purely for the client?
Many thanks
Subject: RE: Image source on local file system
As long as the form has its “Render passthru html in notes” property set and the client is R6, it’ll all work!
Subject: RE: Image source on local file system
Thanks for your help Bruce,
1 minute’s fiddling about and it is now working perfectly without the need to move nay files - exactly what I was looking for.
Regards
MArk
Subject: RE: Image source on local file system
1 minute’s fiddling to avoid moving all those files is beautiful; glad it worked for ya.