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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:16:27+00:00 2026-05-19T17:16:27+00:00

I am working on a zipper J2EE application. This application requires the following: The

  • 0

I am working on a zipper J2EE application. This application requires the following:

The application has to zip a folder in remote machine where app server is running so that other applications can directly download this zipped folder instead of downloading each file one by one.

I am able to do this in my local machine using absolute path don’t know how to go ahead with remote machine.
Code i’m using for zipping in local machine:

File file = new File(myFolderPath);    
int index = myFolderPath.lastIndexOf("/");  
String folderName =myFolderPath.substring(index);  
String folderPath = myFolderPath.substring(0, index);  
File outFolder = new File(folderPath + folderName + ".zip");  
if (!outFolder.exists()) {  
 zip(file, outFolder);  
}

Here myFolderPath is a string. But how should i go ahead if it is a URL?
Thanks in advance.

  • 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-19T17:16:28+00:00Added an answer on May 19, 2026 at 5:16 pm

    URLs don’t allow directory listings, so this is not possible. You will need absolute paths on the server, too, or convert the URL to an absoltue path on the server, maybe by replacing a http://server/ with the root folder of the webapp.

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

Sidebar

Related Questions

Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
I'm working on an SBT plugin where I'd like to zip up a directory.
Using this batch file I want zip some *.txt files. Each *.txt file in
My working command to run regular backups: ditto -c -k --sequesterRsrc --keepParent ~/Library/'Application Support/MyProg'/
I'm working on a Python application that is distributed as source (zipped) and via
Creating a zip file using Send To -> Compressed folder excludes .hg folder on
I wrote the following Nant script on my Vista dev machine and was pleased
I have been working on a project that requires downloading a zipped file off
I'm working on an app that downloads a zipped rss feed and then unzips

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.