BASE64ENC

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Created page with "= <span class="f_Header">Action</span> = Converts a string into the Base-64 representation. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;...")
 
Zeile 9: Zeile 9:
 
= <span class="f_Header">Syntax</span> =
 
= <span class="f_Header">Syntax</span> =
  
Result =&nbsp;<span class="f_Syntax">BASE64ENC</span>( source)
+
Result = <span class="f_Syntax">BASE64ENC</span>( source)
 +
 
 +
<span style="font-family: Arial;">Result</span> = <span class="f_Syntax">BASE64ENC</span>( array, length)
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>

Version vom 17. Januar 2017, 20:03 Uhr

Inhaltsverzeichnis

Action

Converts a string into the Base-64 representation.

 

 

Syntax

Result = BASE64ENC( source)

Result = BASE64ENC( array, length)

 

 

Remarks

Result

A string variable that is assigned with the coded string.

Source

The source string that must be code with base-64.

 

Base-64 is not an encryption protocol. It sends data in 7-bit ASCII data format. MIME, web servers, and other Internet servers and clients use Base-64 coding.

 

The provided Base64Enc() function is an encoding function. You need it when you want to send attachments with POP3 for example.

The target string will use 1 additional byte for every 3 bytes.

So make sure the target string is dimensioned longer then the original string.

 

 

See also

CONFIG TCPIP , GETSOCKET , SOCKETCONNECT , SOCKETSTAT , TCPWRITE , TCPWRITESTR , CLOSESOCKET , SOCKETLISTEN , BASE64DEC

 

 

Example


$regfile = "m48def.dat" ' specify the used micro
$crystal = 8000000 ' used crystal frequency
$baud = 19200 ' use baud rate
$hwstack = 32 ' default use 32 for the hardware stack
$swstack = 10 ' default use 10 for the SW stack
$framesize = 40 ' default use 40 for the frame space
$lib "tcpip.lbx"
Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
 
 
Dim S As String * 15 , Z As String * 15
 
S = "bWFyazptYXJr"
Z = Base64dec(s)
Print Z 'mark:mark
s = Base64Enc(z)
Print s
End

Languages   English Deutsch  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache