• Post Reply Bookmark Topic Watch Topic
  • New Topic

download file using spring rest

 
s ravi chandran
Ranch Hand
Posts: 469
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!