Hello,
Does anyone know if its possible to have a lotuscript agent called by a url respond to the browser with a file - without redirecting the browser to the file itself? (The file should only be accessible through the agent, and never through a direct url call.)
I’ve tried using the bytes read from a notesstream containing a file read from the file system, but it doesn’t seem like there is any way to send the stream out. If I use stream.read it gives my a variant array that when printed results in a corrupted file.
I’ve also tried getting the fileData$ through xml and printing it - but it also shows up corrupted. I see that the xml is encoded in utf-8, and I’m assuming that is why the browser doesn’t understand the file. I’ve tried playing with the HTTP Response headers, but haven’t had any luck (though I may be setting the wrong header).
Does anyone have any ideas?
Or has anyone ever attempted file streaming from domino?