The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by pcw1]

Hi Tony,
I'm using VisualAge Java 3.02 to access a mailbox on a remote Notes
server to find all mails that contain attachments in order to extract them to
a network drive for further processing.

Using the sample code from the book I can find and check all the properties of
the attachements, such as filename & size etc., within all the documents.

When I use x.extractFile("filepath" + x.getSource()); this works if the path
exists on the remote notes server itself.

When I use a filepath to the network drive available to the machine that is
executing the java program it fails with :-

4005 Notes error: File cannot be created (filepath/filename).

How can I either;
extract directly to a drive other than one on the remote Notes server,
(which is what I really want to do),
or,
extract to the remote server and then move that file to a different network
drive,
or,
store the extracted document until the connection to the remote server is
closed.

Thanks,
Philip


import-bot (20211) [Avatar] Offline
#2
Re: extractFile question
[Originally posted by aspatton]

Extracting to a non-Local drive does create a problem. There are always
problems trying to access a mapped drive. Can you save it locally and ftp to
the appropriate directory?

Tony.
import-bot (20211) [Avatar] Offline
#3
Re: extractFile question
[Originally posted by pcw1]

Thanks for the reply Tony.

Unfortunately my Notes administrator was less than thrilled when I asked to be
able to ftp to the Notes server as this is not permitted on our company
servers.

Are there any other workarounds that I can try?

Thanks,
Philip