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.
Never Miss an Articles from us.
Web Server is the connection between the HTTP and HTML...