Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Write base64 string to file/reverse?


Reply
 
Thread Tools Display Modes
  #1  
Old 08-24-2003, 12:50 AM
spamonkey8's Avatar
spamonkey8 spamonkey8 is offline
Junior Contributor
 
Join Date: Apr 2003
Location: Between Your Ears
Posts: 337
Question Write base64 string to file/reverse?


How would I go about encoding a file into base 64 and then decoding it and writing it to a file? I tried searching past posts and got nothing.

Thanks!
Reply With Quote
  #2  
Old 08-24-2003, 01:10 AM
passel's Avatar
passel passel is offline
Sinecure Expert

Super Moderator
* Guru *
 
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 7,883
Default

Do you have any idea what characters they would use for Base 64?
The highest I've generally seen is base 36, with the characters 0..9,A..Z.
What would you use for the other 28 character? Any idea? Any standard
that you know of?
Reply With Quote
  #3  
Old 09-01-2003, 03:42 PM
spamonkey8's Avatar
spamonkey8 spamonkey8 is offline
Junior Contributor
 
Join Date: Apr 2003
Location: Between Your Ears
Posts: 337
Default

Definitely!

0-9, a-z, A-Z, and a couple others, like +, ., or /, i don't know which two. That makes 64.

It's used all the time as the industry standard for transfar of data of any file format via an email attatchment.

Anybody have an answer about converting from binary to base64 and back? I have ASCII to base64 and the reverse figured out.

Last edited by spamonkey8; 09-01-2003 at 03:55 PM.
Reply With Quote
  #4  
Old 09-01-2003, 04:09 PM
OnErr0r's Avatar
OnErr0r OnErr0r is offline
Obsessive OPtimizer

Administrator
* Guru *
 
Join Date: Jun 2002
Location: Debug Window
Posts: 13,724
Default

Reply With Quote
  #5  
Old 09-01-2003, 09:02 PM
spamonkey8's Avatar
spamonkey8 spamonkey8 is offline
Junior Contributor
 
Join Date: Apr 2003
Location: Between Your Ears
Posts: 337
Smile

Thank you!

Thank you!

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting a file in dat question ? murphys General 5 11-06-2002 08:34 PM
Open an associated Text Document knoxitis General 19 05-01-2002 11:26 PM
Shareware Registry Protection Technigue karachi999 General 2 01-21-2002 02:40 PM
Loop to format file kingesk General 2 09-10-2000 05:01 PM
File format problem kingesk General 1 09-08-2000 04:52 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->