Click here to Skip to main content
15,868,004 members
Articles / Programming Languages / Java / Java SE
Article

Easy Conversion of Any File Type to Base64

Rate me:
Please Sign up or sign in to vote.
1.40/5 (16 votes)
7 Aug 2004CPOL 59K   1.2K   14   4
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Australia Australia
C/C++, C# .NET, VB.NET, Linux, Oracle, PostgreSQL, MYSQL

Comments and Discussions

 
GeneralMy vote of 2 Pin
dvhh2-Mar-09 13:27
dvhh2-Mar-09 13:27 
General[Message Removed] Pin
immetoz6-Oct-08 7:50
immetoz6-Oct-08 7:50 
GeneralWhere is zip file Pin
VikramDelhi8-Aug-04 2:57
VikramDelhi8-Aug-04 2:57 
GeneralRe: Where is zip file Pin
immaad8-Aug-04 6:45
immaad8-Aug-04 6:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.