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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:06:22+00:00 2026-06-09T02:06:22+00:00

I have an application that take a zip file as input in Java. My

  • 0

I have an application that take a zip file as input in Java.
My application would decompress the zip file and inside the zip file there are some file contains filename exceeds 256 chars

Could I modify the filename of a file in zip without decompression

OS : linux/mac

  • 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-06-09T02:06:24+00:00Added an answer on June 9, 2026 at 2:06 am

    It’s more of a limitation of the file system used, than the OS itself.

    You can only change this by formatting the drives to a different file system that supports longer file names.

    Why you would need a file name that is couple of miles long is beyond me. But only advise I can give is, try to shorten the file name.

    ::EDIT::

    Since you updated your question. Here’s the correct answer. 🙂

    Typically, your approach is correct. Although if your zip contains longer filenames, you can truncate them. (Take the first, 250, ignore the rest. Now, you may have duplicate filenames. Add a number at the end coz you got 5 chars left)
    Another option is to ask the user to enter a new file name.

    It is possible to edit the zip file itself, as long as you know how it is structured .etc.

    I’m not aware that Java built-in APIs allow editing zip files. Although a while back, I came across this library names DotNetZip for Microsoft.NET which allows all the typical functionality plus editing the entries inside a zip file, encryption, passwords .etc. (it is awesome btw)

    Look for a similar library for Java.

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

Sidebar

Related Questions

I have a java application that will take the image as an input and
Is there an application that can take in my db/schema.rb and my models file
I have an application that allows the user to take a picture with the
I have a .Net web application that I want to take a copy of
I am building a Rails application that contains Developer s who have Application s.
I have a C++ application that can take commands through a named pipe. Is
I have an application that is ready to go live, once we take data
I have a BlackBerry application that needs to take pictures from the camera and
I have a WinForms application that, at some point, will do some calculations that
I have an application that determines which path of execution to take based on

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.