uploading file to mainframe

Hi folks, I am in process of developing an java application which requires to upload a file from the server to Mainframe. The input parameters available are login - id , password and the ip address of mainframe. Can anybody help me with this .... i was wondering if i can accomplish this by using FTP from java. Thanks Sanjay