CreateStream from URL OR shared resources

Hi,I am desperately trying to form an email attachment with a LotusScript agent. The following does not work:

Set stream = s.CreateStream()

stream.Open(“http://xxx/xxx.pdf”, “binary”)

It simply sends a blank file, so I assume it can’t find the file specified by the URL.

Can anyone give me an idea on how to attach a file to my email in LotusScript? I need it to come from URL in any case, IDEALLY from shared resources.

Many thanks for any ideas/help