Hello sridhar,
I have done similar work,in Xml rpc
To use FileTansfer class do following things
step(1)Make following changes in
turbineresource.properties
# X M L R P C S E R V I C E
#
#
-------------------------------------------------------------------
# This property is added by Manvendra Baghel to give
location of file to be
# kept or taken by Client
brihaspati.remotecourse.location=/Remotecourse/
brihaspati.test.location=/test
Note this path is path after
tdk-2.3_01/webapps/brihaspati2/
ie tdk-2.3_01/webapps/brihaspati2/Remotecourse
(Source)
and tdk-2.3_01/webapps/brihaspati2/test (Target dir)
Now in java do following changes
FileTransfer.send("http://172.28.44.20:12345/",
"brihaspati.remotecourse.location",
"manavfile.txt",
"brihaspati.test.location",
"manavfile.txt");
Hope this helps
Bye manav
--- Veerappan Sridhar <[EMAIL PROTECTED]> wrote:
> Hi,
> Pls help me , how to transfer a file from client
> machine to server
> machine.
> I have used this statement..
>
>
FileTransfer.send("http://user1111:8080/spark/","DOCS/",myFile,"DOCS/",dst);
>
> It is giving err:
>
> [javac]
>
C:\tdk\webapps\spark\WEB-INF\src\java\org\novell\spark\modules\actio
> ns\ProcessSQL.java:2174: cannot resolve symbol
> [javac] symbol : method send
> (java.lang.String,java.lang.String,java.io.Fil
> e,java.lang.String,java.lang.String)
> [javac] location: class
> org.apache.turbine.services.xmlrpc.util.FileTransfer
>
> [javac]
>
FileTransfer.send("http://user1111:8080/spark/","DOCS/",
> myFile,"DOCS/",dst);
>
> syntax:
> from the site i got the syntax
> /*
> * @param serverURL
> * @param sourceLocationProperty
> * @param sourceFileName
> * @param destinationLocationProperty
> * @param destinationFileName
> */
>
>
FileTransfer.send("http://www.far-away.com:9000/RPC2",
> "test.location",
> "test.txt",
> "test.location",
> "test.send");
> Is there any other way to transfer file from client
> machine to server.
>
> Let me know
> Thanks and Regards
> Sridhar
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]