Definition: Multipurpose Internet Mail Extensions is the fundamental Internet standard for sending multimedia e-mail (contain, for example, audio, video and/or graphics) and messages in non ASCII character sets. Also used by Web browsers, MIME specifies what types of media a message contains and the form in which it has been encoded.
We take for granted the easy exchange of electronic documents via e-mail. Just click on "Insert Attachment", specify which file, and the job's done. But before 1992, there was no standard way to do this. Back then, if you wanted to send a copy of a document (say, a contract that had been prepared using a word processor, a spreadsheet of financial information or a diagram), your options were quite limited:
- You could print it out and then mail, fax or deliver a hard copy to the recipient. This let the reader see the final form, but to make changes or add comments, he had to write them by hand and then send the whole package back to you so you could input the changes.
- You could save the document on a floppy disk and then either hand it to the recipient or ship it. This got him the document in digital format, available for editing and revision, and it preserved the original's graphics and formatting. But it was time-consuming and expensive.
- You could send the document as an e-mail message. You'd first have to convert the document to plain ASCII (seven-bit) text. That way, the addressee received it in digital form, but all graphics and formatting were lost. The recipient could make changes on the digital copy and send it back to you, but you'd have to do a character-by-character or line-by-line comparison just to find the changes. You'd then transfer them to the original document (perhaps by cutting and pasting) and determine what formatting to apply to each change. That might be more work than dealing with an old-fashioned hard copy.
All bets were off if the document in question included graphics, sound files or video clips or was written in Japanese or Russian, neither of which uses the Latin alphabeton which ASCII is based. Clearly, users needed more capable e-mail.
We got that better e-mail with the advent of Multipurpose Internet Mail Extensions. This standard took hold so quickly that today MIME compatibility is simply assumed to exist within every e-mail program and Web browser. MIME offers these features:
- on-ASCII support
For electronic communications, letters of the Roman alphabet are encoded into numbers according to the ASCII-coded character set. However, for billions of users whose native language is not English and who do not use the unaccented Latin alphabet, ASCII is unusable. MIME allows other alphabets to be used via defined character sets. For example, the ISO 8859-1 standard extends the basic ASCII character set to include accented characters used in French, Spanish and German; ISO 8859-8 is for Hebrew; and BIG5 is widely used in Taiwan, where it has become a de facto standard.
- Content type labelling
To identify the type of content in a file, most operating systems use a short filename extension. MIME provides a better, more specific indicator, the MIME type, which includes a primary type, a slash and a subtype. The primary type is quite general; examples include text, audio, video, image and application. The subtype provides the information a computer program needs to properly handle the content. For example, image subtypes include JPEG, GIF, PNG, TIFF and others. A complete MIME type example is "image/GIF", where "image" is the primary type and "GIF" is the subtype.
MIME types are important to the smooth running of the Internet. When a Web server sends content (which might be HTML text, JPEG or GIF images, or a PDF file) to a Web browser, it also includes a MIME-type descriptor. This is how the browser knows when to display HTML text and images, or when to start Acrobat Reader for a PDF file.
- Support for nontext content
Today's Internet mail system is still limited by the legacy of its forebears and can only reliably carry messages that are entirely ASCII text. Before nontext content, such as an image or a sound, is sent through the e-mail system, it is usually encoded into text characters using a system called Base64. MIME also provides an alternative called "quoted-printable" that is suitable for character sets that are mostly ASCII-compatible. If you ever see the characters "=20" or just "=" at seemingly random places in the text of a message -- especially one that has been forwarded numerous times -- those probably are attributable to text that was incorrectly decoded from the quoted-printable encoding.
- Support for multipart, compound documents
When you send an e-mail with an attachment, your e-mail program creates a two-part message. The first part contains the text of your message, and the second part, the attached file (Base64-encoded). MIME specifies how these two parts combine to form a single message. A message may have any number of parts, and each one can contain multiple parts.
MIME has been adapted as a compound document technology for Web pages. Most Web pages consist of an HTML file, a set of image files, and perhaps some audio and video files. To view such a page off-line, you must save all those files. Many browsers give you the option of saving just the HTML file, saving the HTML file and all image files to a directory, or saving it all as a single file. Pick the last option, and your browser will save the HTML and image files as a single multipart MIME document with an .mht extension. If you view this compound document with a text editor, you'll see the multiple parts separated by boundary lines and images encoded with Base64.
Discover how SOA can create smarter outcomes for your business.
Attend and learn:
- How SOA is helping leading companies to become more agile
- Where you should be applying SOA processes in your company
- The top SOA implementation mistakes to avoid
Click here for more information.
- +
Computerworld Live Podcast #97: The Future of Enterprise Networking 25/07/2008 09:45:36
This week CW Live chats with Mark Thompson, global sales and marketing manager for HP ProCurve, on the future of the enterprise networking. Mark discusses the trends we can expect to see in the near future and how the right infrastructure can ensure your enterprise network is secure. - +
Computerworld Live Podcast #96: Security at the Edge 11/06/2008 09:22:22
CW Live speaks with Amol Mitra, HP ProCurve Director of Marketing for Asia Pacific and Japan. Today's topic: how enterprises are starting to shift away from simply controlling security via server logins, firewalls and moving to more adaptive security frameworks. - +
Data Management Edition #10: Multi-Petascale Systems 02/05/2008 09:12:33
This week we look at sustainability and the development of multicore technologies to build multi-petascale systems. - +
IT Security Edition #11: How to poison the Storm botnet 01/05/2008 08:51:55
This week CW Live presents a case study on how to poison the notorious Storm botnet . Plus we take a look at Cisco's plans for Ironport. - +
IT Security Edition #10: Cyber-battles fought and won 24/04/2008 11:09:47
Vendors bow to end user pressure to improve product security, and we take a look at the latest concepts shaping the cyber-battlefield of the future.
Fortinet November Threatscape Report Shows Calm Before Holiday Storm 2008-12-05 16:00:00+11
Epicor® Cited as an Order Management Solutions Leader by Independent Research Firm 2008-12-05 15:52:00+11
F-Secure: Growth In Internet Crime Calls For Growth In Punishment 2008-12-05 13:00:00+11
International researchers gather in Sydney to preview the clever web 2008-12-05 09:48:00+11
Borderless corporate networks to shift focus to secure content management in Australia in 2009 2008-12-04 16:06:00+11
Data grids and service-oriented architecture
When choosing an SOA strategy, corporations must ensure data availability, reliability, performance and scalability. A data grid infrastructure, built with clustered caching provides a framework for improved data access that can create a competitive edge and sustain customer loyalty. Read on to discover how this can be created within your organisation.












