• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ftp file to an AS400

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic