For file download, what Content-Type should be set in the servlet response?
- application/json
- application/octet-stream
- image/png
- text/html
For file download, the Content-Type in the servlet response should be set to application/octet-stream to indicate that the response contains binary data without any specific format.
Loading...
Related Quiz
- In connection pooling, the pool size is defined by the _________ and _________ parameters.
- Which method is used to batch multiple SQL statements before sending them to the database?
- Describe the lifecycle of a WebSocket in a Java web application.
- In high-performance servlets, _________ pattern can be used to manage resource-intensive objects.
- To add an AsyncListener to an AsyncContext, use the __________ method.