I have the REST Service Code Below code which returns a File ,now the problem is in the response body on the PostMan Client I get a raw response ,how can I can convert it so th
You need to use different content type instead of produces = { application/json" }
Content-types
http://silk.nih.gov/public/zzyzzap.@www.silk.types.html
If it still dont work then try to get HttpServletResponse and write your file data to Stream with response.setContentType();
Note :: Recently I have use response.getOutputStream to write a Excel file. Due to some reasons setting produces wasnt working for me.
Also you can use Firebug in firefox to see Response headers.