Web service returns file as binary byte array

I have a web service that returns a file as a binary byte array. I have created an agent that gets this array and saves it as a file.

I need the agent to open the file for display without saving it. I also need to have the agent print the file.

Any help is appreciated.

Chris

Subject: re

Hi!

I know only applications (like all browsers) that have to store the date as temp.

in browser there is only one way i know: you have to print the content to the console and print first the header data.

Just have a look to Export view to Excel from Domino Web using LotusScript

your interesting code starts there with “Content-Type”

Best regards

Michael

Subject: Thanks, but Agent is called from Notes client

I don’t have a browser to print to.

This agent is being called from a Notes client. When I print, it writes to the java console.

Subject: A couple of ways

  1. You can use the shell command to execute the program to launch. If you don’t know the program then you could try shell with “START /MIN DATAFILE.XXX”. But I am not 100% sure that will work though.

  2. Create an OLE object and launch it. (See designer help).

Subject: File is in a byte array.

I don’t have the file as a file. I have it as a byte array.

In a web browser, I can write to the output stream. If I’m using a servlet, I write to repsonse.getOutputStream(). It will pop up a message to open, save or cancel.

Is there something similar in a Notes cilent? The only output I know of in an agent is the console - character based, not binary.

Thanks,

Chris

Subject: Agent Code

Hi Chris,

we need an agent for converting binaries back to real files.

Is the Code of your agent confidential?

regards

Marcus