Click here to Skip to main content
13,295,038 members (73,996 online)
Click here to Skip to main content
Add your own
alternative version


14 bookmarked
Posted 10 Jun 2004

Easy Conversion of Any File Type to Base64

, 7 Aug 2004
Rate this:
Please Sign up or sign in to vote.
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.


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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

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

You may also be interested in...


Comments and Discussions

GeneralMy vote of 2 Pin
dvhh2-Mar-09 14:27
memberdvhh2-Mar-09 14:27 
General[Message Removed] Pin
immetoz6-Oct-08 8:50
memberimmetoz6-Oct-08 8:50 
GeneralWhere is zip file Pin
vicky8-Aug-04 3:57
membervicky8-Aug-04 3:57 
GeneralRe: Where is zip file Pin
hashmi8808-Aug-04 7:45
memberhashmi8808-Aug-04 7:45 
Thanx a lot for pointing it out. The link of the source file has been corrected.

thanx again!Rose | [Rose]

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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171207.1 | Last Updated 8 Aug 2004
Article Copyright 2004 by immaad
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid