Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Binary Data


Message #1 by "Bill" <william.crawley@u...> on Wed, 17 Jul 2002 10:26:30
I agree with Jeff.  Using simply ASCII encoding will effectively
double the size of your file since each byte (such as space " ")
will be convert into two bytes ("32").

Cardyin

-----------------------------------------
Cardyin Kim
Client/Server and Web Development Analyst
San Antonio Community Hospital
Upland, California
ckim@s...        (xxx) xxx-xxxx
-----------------------------------------


-----Original Message-----
From: Jeff Mason [mailto:jeffm.ma.ultranet@r...]
Sent: Saturday, July 20, 2002 4:38 AM
To: professional vb
Subject: [pro_vb] RE: Binary Data


I have used a similar technique in other situations.

The only problem with it, if I understand your approach correctly, is that
this doubles the size of the data being encoded.  Base64 has the advantage
that 3 binary bytes are encoded into only 4.

--
Jeff Mason			Custom Apps, Inc.
Jeff@c...

-----Original Message-----
From: William Crawley [mailto:william.crawley@u...]
Sent: Friday, July 19, 2002 5:57 PM
To: professional vb
Subject: [pro_vb] RE: Binary Data


Hi All,

I've found that the easiest way to do this is to do the
asc(mid$(stringvalue,x,1) to get the ascii value, then Hex it then put this
through a simple routine that I have written. to convert the hex.

Regards
Bill

-----Original Message-----
From: Jeff Mason [mailto:jeffm.ma.ultranet@r...]
Sent: 18 July 2002 17:10
To: professional vb
Subject: [pro_vb] RE: Binary Data


How does one convert a binary stream/byte array to Base64?  Are there any
objects or API calls which will do this automatically, or do you have to do
it the 'hard way' by twiddling the bits?

--
Jeff Mason			Custom Apps, Inc.
Jeff@c...



---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills 
from Visual Basic 6 to C#, the language of choice 
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059

to unsubscribe send a blank email to ..

  Return to Index