NotesStream and network drive

Hello. I am trying to setup a NotesStream to a network drive and Domino seems to be failing…

Set outstream = ss.CreateStream

outfile=“\network03\test.txt”

If Not outstream.Open(outfile) Then

Messagebox “Fail”

End If

I am able to stream to this same drive in Java (via FileOutputStream). Does anybody see anything wrong with the outfile syntax or something? or does NotesStream have to stream to local drives/directories only (I kinda doubt that)?

Oh, the agent is set to a runtime security level of 2 so I don’t think that’s the problem. Is there another security layer somewhere in Domino? This agent is run on the workstation.

Thank you very much for reading this.

Subject: unc path resolution

using a unc file path for notesstream::open() is valid.

Is the file ascii or binary? if ascii, you might try ‘ascii’ or ‘ISO-8859-1’ for the charset, or ‘Binary’ if the file is binary.

Have you verified the signer of the agent can actually read / write to the path?

if so, there could be various reasons for a unc path not resolving (such as if wins is not in configured in the server’s tcp setup, or a firewall issue blocking necessary ports for dns or wins resolution [e.g. udp 137], etc).

If unc will not resolve, then mapping a volume drive and using that path should get you working.

Subject: it’s actually to a network printer…

the text file was just a test I was running but it refused to find that as well.

I don’t think it’s Windows or DNS because I had originally written this Domino agent in Java (writing bytes to the FileOutputStream from the network printer address) and it works ok…but I’m trying to code an equivalent in LotusScript so I could port it to LotusScript operations.

I was thinking it might be a security thing somewhere along the line but it’s being run on the workstation and the agent security level is 2.

It just seems to be something that the Domino API objects (NotesStream) are subject to that aren’t applied to the Java API objects (FileOutputStream). It’s weird.