Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

download file using spring rest  RSS feed

 
s ravi chandran
Ranch Hand
Posts: 561
6
Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a requirement to send a binary stream to client using rest services. we are using spring to implement it. I am using FileResourceSystem to get the generated file and sending it as response. I wanted to know if there is a better way to do it. Also, if I do use FileResourceSystem, how can I set the content type? currently my setting is like this:



Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!