문제

I want to send the CSV File as attachment in Java Webservices Response. Can this be done. Please provide the steps if it is possible

도움이 되었습니까?

해결책

Set the Content-Disposition header on the response. For example, the headers:

Content-Disposition: attachment; filename="filename.csv"

...will cause a browser to download the HTTP response entity as a file named "filename.csv". You probably want a MIME type too, which will look like this:

Content-Type: application/csv
Content-Disposition: attachment; filename="filename.csv"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top