Hi everyone,
I have this ques, please help:
I wrote the a program using jdom to create an xml file which works fine. Following are the main steps:
Now, I need to have this application on the web and do a ftp of the file. I do not want to have the new xml files be first put on the originating server or some network file server and then ftp'ed to the destination.
Is there a good way to create the xml file in memory and then do an ftp ?
I'm new to
java, so looking at the
jdom api, i think this can be used:
and in
apache commons net api for the ftp part, I can see this:
Basically I don't know how to add these things up and get something that just goes from
doc -> outputstream/inputstream -> ftp.
I don't want to have a copy of all files on my end.
Any hints or suggestions ?
Thanks a lot!
Raj