[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Auto-Open Download File

Guys,

I am using a kind like
http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20374411.html

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?

Thanks
David
0
suprapto45
Asked:
suprapto45
1 Solution
 
objectsCommented:
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.
0
 
suprapto45Author Commented:
Yeah,

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.

David
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now