forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase64Encode.xml
More file actions
46 lines (46 loc) · 2.61 KB
/
Copy pathbase64Encode.xml
File metadata and controls
46 lines (46 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<doc>
<legacy_id>2281</legacy_id>
<name>base64Encode</name>
<type>function</type>
<syntax>
<example>the base64Encode of <i>data</i></example>
<example>base64Encode(<i>data</i>)</example>
</syntax>
<library></library>
<objects>
</objects>
<synonyms>
</synonyms>
<classification>
<category>Text and Data Processing</category>
</classification>
<references>
<function tag="numToChar">numToChar Function</function>
<function tag="md5Digest">md5Digest Function</function>
</references>
<history>
<introduced version="1.0">Added.</introduced>
</history>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<summary><glossary tag="return">Returns</glossary> a base 64-<glossary tag="encode">encodedstring</glossary>.</summary>
<examples>
<example>write base64Encode(pictureFileData) to socket thisSocket</example>
</examples>
<description>
<p>Use the <b>base64Encode</b> function to <glossary tag="encode">encode</glossary> <glossary tag="binary data">binary data</glossary> for transmission over communication channels that don't accept raw <glossary tag="binary data">binary data</glossary>.</p><p></p><p><b>Parameters:</b></p><p>The <i>data</i> is a string of <glossary tag="binary data">binary data</glossary> of any length.</p><p></p><p><b>Value:</b></p><p>The <b>base64Encode</b> function <glossary tag="return">returns</glossary> a text <keyword tag="string">string</keyword> representing the binary <i>data</i>.</p><p></p><p><b>Comments:</b></p><p>The <b>base64Encode</b> function is the <keyword tag="inverse">inverse</keyword> of the <function tag="base64Decode">base64Decode</function> <control_st tag="function">function</control_st>. The <glossary tag="encode">encoded</glossary> result is generally about a third larger than the original data.</p><p>The encoded string returned by <b>base64Encode</b> <control_st tag="function">function</control_st> can include uppercase and lowercase letters, digits, +, /, and =, but no other characters. Base 64-encoded data is wrapped at 72 characters, so each <keyword tag="line">line</keyword> of the <glossary tag="encode">encoded</glossary> data is 72 <keyword tag="characters">characters</keyword> or (for the last or only line) fewer.</p><p>The base 64 encoding scheme is often used to encode binary data for MIME mail and HTTP transfers.</p><p>For technical information about base 64 encoding, see section 6.8 of RFC 2045 at <<u>http://www.ietf.org/rfc/rfc2045.txt</u>>.</p>
</description>
</doc>