Short tip: Sending binary data from an agent

The implementation of agents in Domino makes it impossible to send binary data with the getAgentOutput in Java or the print function in LotusScript. There is two ways to ”mimic” the sending of the binary data:

  1. Create a temporary document and attach the binary data as a file and redirect the user to it
  2. Use a servlet to ”stream” out the content

”Hey! That was no tip! That was only like a FAQ entry?!” Well, I just want to share my knowledge of things, and there may be developers out there that have not found this out yet…