How to Encode a Computer File Into a Base64 Encoded Text File Colorado

Text files can be stored as text, of course. But what if there was a way to store any other kind of file as text? This would mean that, for instance, if your webmail didn't allow attachments, you would still be able to send them the file!Base64 encoding has been around since the dawn of the internet. Users in newsgroups, the Usenet, have been using base64 encoding to post files in normal message long before attachments were allowed.We'll use a tiny program to do the conversion for us. There may be others out there that do the same thing. But this one, base64, is simple and free.

Local Companies

OfficeMax
970-330-6173
4759 West 29th Street, Unit 1
Greeley, CO
OfficeMax
303-683-6929
9579 S. University Blvd., Unit 200
Littleton, CO
Staples
303-278-4258
16630 West Colfax
Golden, CO
Staples
303-703-4481
6767 S. Vine Street
Centennial, CO
Staples
303-742-0500
7350 West Alameda
Lakewood, CO
OfficeMax
303-469-0058
10450 Towne Center Drive Suite 500
Westminster, CO
OfficeMax
720-733-1942
5650 Allen Way, Suite 110
Castle Rock, CO
Staples
303-841-2651
11236 S Pikes Peak Drive
Parker, CO
Staples
719-598-3214
4520 Centennial Blvd.
Colorado Springs, CO
Staples
303-758-9900
870 South Colorado Blvd.
Glendale, CO

Provided By:

Steps

  1. Get a program that converts files to base64. See the External Links section.
  2. Find the directory that you put the base64.exe program in
  3. Create a new text file (using Windows Notepad is better than MS Word) in that same directory and name it DropOnMe.bat
  4. Open the file and put the following text into it as the contents:base64 -e %1 test.b64pause
  5. Save the file and close it.
  6. Now drag-and-drop any non-text file (i.e. binary) onto the icon of the BAT file you just created.
  7. A DOS window will pop up. If there was an error during conversion, you'll see it. (Sorry, but I don't have the time to construct instructions on how to interpret the text in the DOS window).
  8. Pause will be the last command, and it is what is causing the window to stay open. Hit the [Enter] key and the window will disappear.
  9. You should now find a file called test.b64 in the folder you've been working in. Inside it is the text that is the base64 "version" of the binary file you dropped onto the icon.

Tips

  • You should make sure that you have the Windows option for hiding file extensions turned off. If you don't know what I'm talking about, then you probably don't have the skills to do this WikiHow. Sorry.
  • If you don't use the same base64 program referenced here, you may need to alter how you work with it. Hopefully it came with documentation you understand!
  • You may omit the second line of that DropOnMe.bat file once you find that everything is working fine. If there are no errors, then you don't need to see that everything worked. I included it just for confirmation.
  • In the sample file (DropOnMe.bat), I set the name of the output/result file to test.b64, but you can change that to whatever you want. Result.b64 might be a good alternative.
  • Creating the batch file (i.e. the file whose name ends in .bat) is actually not necessary, but just very convenient. By creating it, you don't have to memorize the command syntax to type the command directly. And if you knew how to do such things anyway, you wouldn't need this article, probably ;-).

Warnings

  • This is a pretty safe procedure. You'd really have to screw something up royally for any of the actions described in this tutorial to harm your computer!

Things You'll Need

  • A program that converts files to base64-encoded text. See External Links section for more info.

Sources and Citations

  • Base64 program -- http://www.fourmilab.ch/webtools/base64/

Article provided by wikiHow, a wiki how-to manual. Please edit this article and find author credits at the original wikiHow article on How to How to Encode a Computer File Into a Base64 Encoded Text File. All content on wikiHow can be shared under a Creative Commons license.


Topics: 
Advertising Financial Services Insurance Real Estate
Business Services Health Internet Software
Education Home Services Legal Telecommunications
Family