Hello,
Could you please help me ?
I need a FTP for send two files another Domino Server.
I don’t have idea for this problem ![]()
Thank you very much!
Hello,
Could you please help me ?
I need a FTP for send two files another Domino Server.
I don’t have idea for this problem ![]()
Thank you very much!
Subject: More info needed…
Can you tell us more about your setup and what you’re trying to do? Domino doesn’t have a built-in FTP Server. There are ways you can send file attachments between Domino applications or from a client to the server.
Subject: Thank you
thanks,How notes from a document I can send an attached file via ftp to another server in the data folder?
or
transfer a file by FTP to another server in the data folder.
or
select the file and transfer it via ftp to another server in the data folder.
See you later
![]()
Subject: Sending attachments from one server to another
http://www.nsftools.com/tips/NotesTips.htm
In the LS2J Examples database, there is an example script used to FTP files. You may also use (if the server is Windows based, the Microsoft APIs via calls from your Lotusscript code.
This code will be on sending files from the file system via an FTP program written in Lotusscript. You can write your agent to detach all of the attachments in a particular document or group of documents, to a specified location, then call the FTP sub routine or method, specifying the location you have detached your files to. The FTP code would simply loop through all of the files and FTP them to the new server as needed. More than likely, once this is done, you will want to move the files to an archive folder on the original machine (or delete them, whichever meets your needs). This is the simplest way to prevent them from being sent across again the next time the program runs. Other methods include keeping a log of the files sent, and checking against that log before the ftp occurs.
Having said that, if the “other” server is also a Domino server, and your goal is to transfer the files and then re-attach them to a Domino database document, you can simply copy the document from the first database to the database on the new server and set your form and document fields appropriately (look for the NotesDocument.CopyToDatabase method). To copy the attachment to a file system, you would use the FTP method (or you can copy the notes document and detach the file on the new server). Which method is preferred will depend, in part, on how many files need to be sent at once, and where they are located (single document or multiple). For larger numbers of attachments, detaching them on the sending server and doing an FTP would certainly be faster.