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 3603164
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:50:17+00:00 2026-05-18T20:50:17+00:00

I am downloading file parts using socket, saving them as .part1, .part2 etc.( However

  • 0

I am downloading file parts using socket, saving them as .part1, .part2 etc.( However I am not sure if I should). I am trying to merge them in a .bin file. Can any of you recommend me a way to do that? Should I read them all as binary and then append it? I don’t even know if that makes sense actually.

  • 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-18T20:50:18+00:00Added an answer on May 18, 2026 at 8:50 pm

    Why don’t you open the first part for input, and open an output streamof the form

    out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(outFile)));
    

    then read in your first part file as bytes, and use the writeByte() method to write it all out.

    Then close the first part, open the second part, and read it in, then out to the output file.

    Will that not merge the contents of the two files?

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

Sidebar

Related Questions

I've got a program that downloads part01, then part02 etc of a rar file
I'm trying to make a small programm to download files via HTTP in C#.
I need a method to hide the file source in embedding code for the
I'm using wget to download a set of files via HTTP, using one wget
I'm using Ant to compile Java.The project has to be compiled using JDK 1.5
I have created a project in NetBeans by downloading some third party jars of
I would like to download a animated GIF file (more specifically, a weather radar
I have a text file with catalog names (one per line) and I need
I want to checkout sonar, so I added the following snippet to my pom.xml
I am developing an application for Android devices, and one part of it is

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.