Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

code for downloading file in spring 3.0

 
rajareddya reddy
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Report post to moderator
There is a lot upload examples, but I couldn't find any for download. I'm using Spring 3.0 and I need to generate some text buffer and then let user download it as a file.

Please help to post code .
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Make sure you are setting your headers and ContentType, contentLength etc on your HttpResponse. I found this example with a quick google search.

http://gardiary.wordpress.com/2010/04/06/file-upload-and-download-using-spring-mvc/
 
    Bookmark Topic Watch Topic
  • New Topic