Example & Tutorial understanding programming in easy ways.

What is MIME Type and why it is used?

This is the kind of response headear which containing the basic information of data sending and reciving by the client. Mainly the ďContent-TypeĒ response header is known as MIME Type. Server sends MIME type to client to let them know the kind of data itís sending. It helps client in rendering the data for user. Some of the mostly used mime types are text/html, text/xml, application/xml, script/text etc.

 To get the mime type of the servelets we can use ServletContext getMimeType() method to get the correct MIME type of the file and use it to set the response content type. Itís very useful in downloading file through servlet from server. 

Read More →
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!