What do you understand by MIME Type?

devquora
devquora

Posted On: Feb 22, 2018

 

MIME Type is referred to the 'Content-Type' response header. It provides knowledge to the clients about the type of data that is sending to them. It is very efficient for the client as they are able to render the data for the users. Some examples of the MIME Types are text/XML, text/HTML, application/XML and many more.

Now it is very easy to arrange the correct MIME type. For this, just use a Servlet Context, get Mime Type () technique and fix it to the response type. This method is highly useful at the time of downloading any file from the server using a servlet.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Servlet interview questions

    What do you mean by Servlet?

    It is designed by the Java software company. It is used to extend the ability of the server...

    Servlet interview questions

    Differentiate between the web server and application server?

    Web Server is the connection between the HTTP and HTML...

    Servlet interview questions

    Which HTTP method is said to be non-idempotent and idempotent?

    If any HTTP brings the same result every time then it means it is idempotent...