Auto-Open Download File

Posted on 2006-04-24
Last Modified: 2010-08-05

I am using a kind like

to download file from server.

However, it only downloads. Is there any way (maybe setting the request header or response) that will automatically open the downloaded file in client side?

Question by:suprapto45
    LVL 92

    Accepted Solution

    yes, you can set the content type to whatever the file is, then if the client has the necessary association for that type it will get opened.
    LVL 16

    Author Comment


    I just realized that as well. Just now, the problem happens because I forgot to add the extension to the file.
    Thanks for your help.


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    The viewer will learn how to implement Singleton Design Pattern in Java.

    745 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

    16 Experts available now in Live!

    Get 1:1 Help Now