Base64 Encoding ActiveX Library 2.04

This library implements the Base64 encoding system as it is defined in RFC 2045: Multipurpose Internet Mail Extensions (MIME), Part One: Format of Internet Message Bodies. This encoding is used as a standard to send binary information through network connections or by e-mail.

Note: This version is not binary compatible with version 1.

History:

  • 14.05.2001, version 2.04. Still working on optimization. Two methods added, EncodeArrArr and DecodeArrArr, that perform much better.
  • 08.05.2001, version 2.03. A lot of work made on optimizating the library. Now it works like three times faster in encoding and four times faster in decoding than version 2.01 for a 3.5 Mb file (from memory to memory). Speed gets better with bigger amounts of data. Also, now the library should be even more resistant to not valid data when decoding.
  • 04.01.1999, version 2.01. Corrected a bug that made the library not pad information correctly.
  • 07.12.1998, version 2.0. This version works much, much, much faster than version 1.0.
  • 23.05.1998, version 1.0 released.

Properties:

  • LastCount As Double. Returns the amount of time that the last operation took, in seconds.

Methods:

  • Encode (strDatos As String) As String. Encodes data passed in strDatos and returns the result in a String var.
  • EncodeArr (arrDatos() As Byte) As String. Encodes data passed in the array Datos and returns the result in a String var.
  • EncodeArrArr (arrDatos() As Byte). This method will take data to encode from arrData() and will return the encoded data in the same array. It's the fastest one.
  • EncodeFromFile (strPath As String) As String. Encodes the file specified in strPath and returns the result in a String var.
  • Decode (strDatos As String) As String. Decodes data passed in strDatos and returns the result in a String var.
  • DecodeArr (strDatos As String). Decodes data passed in strDatos and returns the result in an array.
  • DecodeArrArr (arrDatos() As Byte). This method will take data to decode in arrDatos() and will return the decoded data in the same array. It's the fastest one.
  • DecodeToFile (strDatos As String, strPath as String). Decodes data passed in strDatos and saves the result to the file given in strPath. If another file exists with the same name, it will try to overwrite it.

 

(9 Kb)

 

© Alvaro Redondo, 2001. All Rights Reserved.
http://www.sevillaonline.com/ActiveX/

Casablanca de Saha Bichon Maltese
Bichón Maltés de Casablanca de Saha
Islantilla, vacaciones con playa y golf
Islantilla, vacations at the beach with golf