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

  • SEARCH
  • Home
  • 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 6347773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:17:14+00:00 2026-05-24T21:17:14+00:00

I stuck into a problem. I started downloading a file from torrent. the Total

  • 0

I stuck into a problem.

  1. I started downloading a file from torrent. the Total Size of the
    File is 699 MB.
  2. But after a minute i stop my torrent client, torrent client shows 7
    MB of data has been downloaded, I have only 1 File in Queue.
  3. Using Java IO function i calculated length of file and it show 699 MB of Size

File file= new File(“D:/Easy.A.2010.BDRip.XviD-iMBT/easy.a.2010.bdrip.xvid-imbt.avi”);

System.out.println("File Size="+file.length());

// After converting to MBs i got it is 699 MB

at later phase i am splitting file into different equal size parts and uploading to server. as the file size is not actual size of the file so i got Exception

java.lang.NegativeArraySizeException

Please tell me how can i get actual size of the file, or get information about the file that it is complete file or not.

Thanks

  • 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-24T21:17:15+00:00Added an answer on May 24, 2026 at 9:17 pm

    I am not sure if this is relevant, but all the torrent clients I have used create files of the final size at the beginning of the download.

    i.e for the 699 MB movie, a blank 699 MB file is created right at the start, and the 7 MB downloaded only means that 7 MB from those blanks has been filled in, but the file size on disk remains 699 MB all throughout the download.

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

Sidebar

Related Questions

I'm currently stuck on this problem. I've hooked into the method_missing function in a
I am trying to use Hibernate+Spring in my application but stuck into following error:
So I just started digging into web tech, and I'm stuck on the concept
after trying to solve the problem without and with help I'm still stuck. My
I've have started my foray into C#.NET and NHibernate and I'm finally stuck on
Sometimes I still get stuck trying to translate procedural code into functional code. Is
I'm digging into Reflection for the first time and I'm truely stuck. I've googled
Cannot dump Stack Overflow XML file into SQL Server 2008. Could you please explain
I've been stuck on this very simple problem for hours now and Ive been
I just started looking into selenium for automated testing for the past few days

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.