FAQ Home :
Can you store transparent and animated GIF's in the Notes database for a site?
Can you store transparent and animated GIF's in the Notes database for a site?

AnswerThis was a useful technique in Internotes Web Publisher and TILE. You would store all the special GIF and JPEG files as attachments in the Using document for a database. When the web site was generated, these files would then be detached and placed in the same directory. This way, there is only one copy of these images which you'd reference in custom HTML for the site for generating backgrounds, etc.
Ideally, Notes would have something like a graphics link or file attachment link, but it doesn't. However, what you can do is use a URL to reference the file attachment where it lies:
Look up the Document ID for the document where you are storing your images
For the URL in your custom HTML code, use the database path, then the Document ID followed by /$file/filename.ext?OpenElement
Limitations are that:
The document can't be the About or Using documents
The URL can be broken if you delete the carrier document, so only generate the carrier document once
The URL will be broken if you are making a copy of the database instead of replicating
If you don't want the long Notes Document ID to be visible to your users, you can also do the following:
Create a blank database called webfiles.nsf.
Create a form called Web Files. On it, place an editable text field called Name, and a rich text field called Attachment.
Create a view called Files. Make the first column sorted with a formula of Name.
Compose a Web Files document. In the Name section, write "GIFanims". Attach the file (e.g. named animation.gif) in the attachments field.
The URL for this attachment: /webfiles.nsf/Files/GIFanims/$file/animation.gif.
Attachments -none-
Applies to versions4.x; 5.x; 6.x
FAQ Provided Byken yee
CreditClick here for information source
 Forum Latest Entries
10/03/2010 Lotus Notes Forum - how to create new users in domino server 8.5    (sid)
08/03/2010 Lotus Notes Forum - NSGetServerList in .NET (VB.NET)    (Heinz Wolek)
08/03/2010 Lotus Notes Forum - how domino show sap pictures?    (frank)
05/03/2010 Lotus Notes Forum - Free webcast: Compliancy Solution    (Kim van den Berg)
25/02/2010 Lotus Notes Forum - PLEASE HELP! Tried deleting ONE email from "Search" and it deleted everything!    (Liz)
22/02/2010 Lotus Notes Forum - HTML Signature problem    (Zippy)
19/02/2010 Lotus Notes Forum - Environment Variable    (Rahul Singh)
18/02/2010 Lotus Notes Forum - Lotus notes closed while editing    (sam)
13/02/2010 Lotus Notes Forum - MISSING DOCUMENT DATABASE    (P.MALLIK RAM)
11/02/2010 Lotus Notes Forum - Object variable not set    (Shankar)
09/02/2010 Lotus Notes Forum - Insert a button into mail that gives confirmation    (Andrea)
03/02/2010 Lotus Notes Forum - Browser    (Steve)
27/01/2010 Lotus Notes Forum - UIDocument won't close    (Tom Doughty)
27/01/2010 Lotus Notes Forum - UIDocument won't close    (Tom Doughty)
26/01/2010 Lotus Notes Forum - Total Items    (Marc)
21/01/2010 Lotus Notes Forum - NotesEmbeddedObject & ExtractFile    (Paul)
18/01/2010 Lotus Notes Forum - Archive Solution at Lotusphere 2010, booth 730    (Kim van den Berg)
16/01/2010 Lotus Notes Forum - Lotus Notes Application and IE8    (Mantasha)
13/01/2010 Lotus Notes Forum - How to copy Internet Address into Short name field from server addressbook    (Ashish Mhabadi)
11/01/2010 Lotus Notes Forum - auto add recipient to address book    (Baron)
 Latest Tips & Tricks
10/07/2009Terminal Services Tips & Tricks - How to kill terminal server sessions. Utilities for terminal services: qwinsta and rwinsta(Steven Charles Robinson)
10/07/2009.NET Tips & Tricks - The type or namespace name could not be found (are you missing a using directive or an assembly reference?)(SCRobinson)
10/07/2009Terminate Lotus Notes Processes, Error Tips & Tricks - Lotus Notes: An Error Was Encountered While Opening A Window(Steven Charles Robinson)
26/04/2007LotusScript Mail, SMTP, Spam, Junkmail Tips & Tricks - How to drag and drop spam into junk mail filter using LotusScript(Steven Charles Robinson)
31/10/2006Terminate Lotus Notes Processes, Error Tips & Tricks - Lotus Notes: An Error Was Encountered While Opening A Window(Steven Charles Robinson)
23/10/2006Errors, SMTP, Internet Sites, Configuration, Administration, Domino 7 Tips & Tricks - Domino authentication is not enabled in the smtp internet site document(Steven Charles Robinson)
20/10/2006Articles Tips & Tricks - Have you see our recent arcticle in "The View": Proven techniques for abstracting UI from data using XML, XSL and Domino.(Steven Charles Robinson)
26/09/2006.NET Tips & Tricks - If your looking for .NET tips visit http://www.codedotnet.net(S C Robinson)
25/09/2006Using Lotus Notes Tips & Tricks - Save the Window state of a Lotus Notes client on shutdown.(Steven Charles Robinson)
22/09/2006NET, Culture, Globalization Tips & Tricks - How to find out the current culture in a .NET application.(Steve C Robinson)
© 2003 notes411.com. All rights reserved. Disclaimer. site designed & developed by appsworks.com
Lotus Notes is a registered trademark of IBM. This site is not affiliated with IBM or Lotus.
 News

 Google Box
 Sponsor
ClearCase, Subversion, WebSphere Consulting
 Best in the Industry
Lotus Notes & Domino FAQ