Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Easy Conversion of Any File Type to Base64

0.00/5 (No votes)
7 Aug 2004 1  
The program provides a User Interface to convert any file type to base64. The base64 conversion is to remove unreadable characters from your file. You can save your base64 code in a separate file and then convert it back to the original format whenever you want.

Introduction

Base64 encoding was used primarily to send attachments with emails when MIME format did not deal with unreadable characters. All the attachments had to be converted in base64 format before they could be transferred through email because MIME format had conflict with those characters. Now this is automatically done. When you attach a file with your email message, the file is automatically converted to Base64 so that it can be transferred. And when the recipient downloads the file, it is converted back to its original format.

This means that we break all the 8 bit bytes to 6 bit bytes. This provides an extra byte over every three bytes. This shows that the file size will increase and this is the reason why the attachments are always increased in size.

This program provides a complete graphical interface to look like a wizard which makes conversion easy, understandable and manageable.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here