Search code examples
xpageslotus-notesxpinc

View Attachments in XPage


I need to view file attachments (doc scans as JPG, TIFF, PDF, etc.) in Notes. There is an article here which describes to do that through the standard Notes UI. Do not know how to call that correctly, sorry. What I need is to view file attachments with XPage.

Is there a way to use the Notes Attachment -> View functionality within XPage ?


Solution

  • XPages is first and foremost a server technology based on JSF. You access an XPages application through a browser (in case of XPiNC: the browser embedded into the Notes client).

    So anything you want to 'view' is bound/limited by your browser's capabilities.

    The Notes client has an OEM library called OutsideIn (afaik now owned by Oracle) that could render many file formats without the original application. This library is a client library, not a server code. Domino treats attachments as binary blob that get delivered when requested and it is the viewers task to make sense of them (the browser or whatever application reacts to the URL).

    In case you are wondering what the attachment URLs are, check out this article: http://notessensei.com/blog/2010/06/attachment-urls-in-xpages.html