Download A File In Spring RestController

Asked By 5 points N/A Posted on -
qa-featured

I wanted to work on my command prompt using spring rest controller and my java programs to run using the same. But I don’t know how to use it. Please help me in finding out how can I use the Spring RestController?

SHARE
Answered By 0 points N/A #318606

Download A File In Spring RestController

qa-featured

For using the spring RestController in your file you have to convert your file into byte array. The HttpEntity class helps to wrap the content and publish it as your response.
Add the same code in the HttpEntity file

Login/Register to Answer

Related Questions