: 4582 | 108668 | 12353

Work with attachments in LotusScript without detaching 
Use this IdeaSpace to post ideas about Domino Designer.

: 113
: 114
: 1
: Domino Designer
: attachments, LotusScript
: Slawek Rogulski8874 29 Nov 2007
: / Email
Especially when I have an XML type attachment or some text attachment I would like to be able to work with it directly inside script. I don't want to have to detatch the attachment. If I process some XML and end up changing it I woud like to be able to persist those changes to the attachment.
I am not excluding binary attachments.

1) Ben Langhinrichs7009 (29 Nov 2007)
I do this in my products, and it is very powerful. It would be an excellent addition to the core product, probably as a Stream type object.
2) Patrick Lambourne644 (29 Nov 2007)
I think this has been implemented with Java agents in Notes/Domino - it will automatically convert an attachment into a stream and allow processing. I think that behind the scenes a temporary file is saved and then deleted after the processing has finished.
3) Slawek Rogulski8874 (29 Nov 2007)
It would be better if the temporary file was not created. Then you don't need permissions to use the file system. Might also be faster.
4) Ben Langhinrichs7009 (29 Nov 2007)
I do it without a temporary file, and it isn't that difficult (I did it for the reasons Slawek mentioned). I have no idea whether the Java agents really use a temp file or not.
5) Slawek Rogulski8874 (29 Nov 2007)
Ben, your products rock!
6) Patrick Lambourne644 (29 Nov 2007)
from Notes 7 designer help:

Reader property

Read-only. Contents of an EmbeddedObject, Item, or MIMEEntity object in the form of a java.io.Reader object.

Note This property is new with Release 5.0.3.
Defined in
EmbeddedObject, Item, MIMEEntity

EmbeddedObject.getReader creates a temporary file. The file is deleted when EmbeddedObject is recycled.
7) Ben Langhinrichs7009 (07 Dec 2007)
The problem is that the server may have the right to write temporary files but not delete them. It sounds crazy, but the original reason I started writing code to handle all files in memory was that our CoexLinks software was run on mail servers where there was no expectation of temporary files, and some customers would up with hundreds of thousands of temporary files we created which we could not delete. I'll never willingly make that mistake again, so I use memory only files if at all possible. It has made many things easier, and it definitely should work that way in the native product.
8) Stephen McCulloch513 (10 Nov 2010)
{ Link }

Adel Habib brilliantly shows how to do this using Java. It seems absurd that this functionality is available in Java but not in LotusScript.


Welcome to IdeaJam™

You can run IdeaJam™ in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.

Use IdeaJam to:

  • Collect ideas from employees
  • Solicit feedback and suggestions from employees and customers
  • Run innovation contests and competitions
  • Validate concepts
  • Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top

IdeaJam™ works with:

  • IBM Connections
  • IBM Lotus Quickr
  • Blogs and Wikis
  • Websphere Portal
  • Microsoft Sharepoint
  • and other applications.

IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.

Learn more about IdeaJam >>

Better control over horizontal outlines
Implement "Live Scrolling" in Mail Views
Develop and open source a high quality framework for new DBs
InViewEdit - option to show <Ctrl-click here to add new document> at top of view
AJAX Suggest to work off Full Text search
Email Chaser View
Integrate Quickr Connectors into the Lotus Notes install, just as is done for Sametime
Fix the bug of @BrowserInfo
Push out Notes.ini parameters with a Desktop policy
Have Ctrl-T open a new browser tab in the Notes Client
Connect to more than one Sametime server in Notes client
Clear All Breakpoints
Include Request_Content in DocumentContext for Web Service Providers
Ability to detach and remove file attachments from multiple emails at once
Control integrated Sametime status settings
Extend options to set preferences for Rich Text
Add @DialogBox, @PickList and @Prompt for x-pages
HTML validation and accessibility for XPages
Add 'Move to My Contacts' button to the form
Stationary usable in reply and forward of emails
Copy text to the clipboard from the Properties dialog - especially the Replica ID
Publish API to work with calendar items, tasks and contacts

IdeaJam developed by

Elguji Software Logo