exception FileException { string message; }; exception EOFFileException {};
total bytes transfered so far n = (int) ------------------------------- lenght of the file in bytes
total bytes transfered so far n = (int) ------------------------------- lenght of the file in bytes
package WebFlow.RemoteFile; public interface FTcallback { public void transfered(int bytes); }Usage: How to transfer a file
MoveFile mf; FileTransfer file; String dst,src; dst="/tmp/file1"; src="/tmp/file2"; mf.Init(orb.object_to_string(file)); mf.FileReceive(dst,src); // or mf.FileSend(src,dest)
At NPAC: see AppletFT source in /npac/home/webflow/WEBFLOW/JIGSAW/Jigsaw/WWW/MoveFile/src/AppletFT.java