File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ftp file to an AS400

 
Dany Thomas
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I was wondering if it is possible to strip a folder from an e-mail attachement and then send it to an AS400 server in Java.
Could anybody give a few hints .Bits of code if possible to lead me in the right direction.
I am relatively new to Java.
Thanks,
Dany
 
Chris De Vries
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the javamail API to strip an attachment from an email message.
To FTP something that file to the AS400 server, you can try the following, although I have never tried to do this. Assuming that your AS400 server is called "server" your account is "user" and your password is "pass", and the filename you want to give the uploaded file is "somefile" then the following code should work:

[ October 01, 2003: Message edited by: Chris De Vries ]
[ October 01, 2003: Message edited by: Chris De Vries ]
[ October 01, 2003: Message edited by: Chris De Vries ]
[ October 01, 2003: Message edited by: Chris De Vries ]
[ October 02, 2003: Message edited by: Chris De Vries ]
 
Dany Thomas
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris ,
Thanks for the information.
I am working on it.Will let you know if i need any further assistance.
It is the first time i used JavaRanch...and i am quite impressed.Shall be back for more...
Dany
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic