Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6177303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:15:00+00:00 2026-05-24T00:15:00+00:00

I seem to be uploading corrupt jar files to a remote server using Apache’s

  • 0

I seem to be uploading corrupt jar files to a remote server using Apache’s FTPClient 3.0.1. I am also setting the file and file transfer type to binary.

FTPClient ftp = new FTPClient();

FileInputStream fis = new FileInputStream("filename");
ftp.setFileTransferMode(org.apache.commons.net.ftp.FTP.BINARY_FILE_TYPE);
ftp.setFileType(FTPClient.BINARY_FILE_TYPE);
ftp.storeFile(fis);
fis.close();
ftp.logout();
ftp.disconnect();

any help would be appreciated!

Jason

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:15:01+00:00Added an answer on May 24, 2026 at 12:15 am

    Some things to try:

    Are you absolutely 100% positive that:

    a) storeFile() is returning true
    b) you aren’t throwing an exception somewhere

    if you step through it in a debugger does it complete each call in your routine, and the file still winds up as partial on the ftp server?

    What part of the file isn’t getting to the ftp server? Create a test file that contains bytes 0-255 repeated 5 or 10 times, then try uploading that. Then download the result and see what’s getting killed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My code to upload the file on the REMOTE server doesn't seem to be
I'm getting the following exception when uploading a file to Rackspace Cloud Files: Security
Im uploading a file using the following jquery.. function ajaxFileUpload(jobid) { $(#loading) .ajaxStart(function ()
I'm uploading a file to the server. The file upload HTML form has 2
I am uploading some .doc and .txt documents on my server, and i'd like
I am using Cakephp as my framework. I have a problem in uploading my
Hi i want to create an uploading video program using youtube api I think
I am developing a script in PHP for uploading files to a MySQL database.
I am uploading an image to my Imagecollection model in using CarrierWave, and would
I am working on a django app. One part would involve uploading files (e.g.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.