Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sri ram kotireddy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making jquery ajax call



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

Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic