This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Downloading a file to client side without saving the file on the server - dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Downloading a file to client side without saving the file on the server - dynamically" Watch "Downloading a file to client side without saving the file on the server - dynamically" New topic
Author

Downloading a file to client side without saving the file on the server - dynamically

sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
Hello,

I am writing data to a csv file using FileOutputStream, Here the constructor wants path of the file to save. But I don't actually the path of the client where he wants to save...

Can you please suggest me How to do this?

I am using below code to download a file which resides in the server

sri ram kotireddy
Greenhorn

Joined: Mar 13, 2012
Posts: 16
I am making jquery ajax call



How can i get back stream result for downloading the file.

Thanks in advance.
 
Don't get me started about those stupid light bulbs.
 
subject: Downloading a file to client side without saving the file on the server - dynamically
 
Similar Threads
How to preview uploaded image before inserting into the database
Download CSV file from apllication server
Using redirect-action
Delete file when the file downloaded.
problem displaying title using jasper reports plugin