Java File Download

Posted on 2006-06-03
Last Modified: 2010-03-31
Hey Experts:

I have a list of about 50 file names which a user can select and download.  These files are stored in the server’s filesystem outside of where the html documents are.  Is there anything in Java that would allow me to upload these files without having to first copy them to a directory where it can be referenced as a URL.  Hope this makes sense.

Question by:kasiencja
    LVL 6

    Accepted Solution

    You can write a servlet to solve that problem.
    You can see here
    Upload servlet:
    DOwnload servlet:

    Author Comment

    I ended up creating a servlet and piping the data through.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now