OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Convert a string to Base64 encoding:

ExportString["The true sign of intelligence is not knowledge but imagination", "Base64"]

The format "Base64" must be specified when reading Base64-encoded data:

ImportString[%,"Base64"]

Arbitrary expressions can be encoded as Base64:

ExportString[2(a+b), "Base64"]

ImportString[%,"Base64"]

OpenersExampleSection1(Spacer1)Scope  (1)

Characters with code points above 255 are converted to their long names:

ExportString["aα","Base64"]

ImportString[%,"Base64"]

ToCharacterCode["aα"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[BaseDecode, paclet:ref/BaseDecode])  ▪  (RefLink[BaseEncode, paclet:ref/BaseEncode])}, {Related Formats:  (RefLink[GZIP, paclet:ref/format/GZIP])  ▪  (RefLink[MBOX, paclet:ref/format/MBOX])  ▪  (RefLink[TAR, paclet:ref/format/TAR])  ▪  (RefLink[UUE, paclet:ref/format/UUE])  ▪  (RefLink[ZIP, paclet:ref/format/ZIP])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Compression and Archive Formats, paclet:guide/CompressionAndArchiveFormats])}, {▪(RefLinkPlain[Importing & Exporting, paclet:guide/ImportingAndExporting])}, {▪(RefLinkPlain[Listing of All Formats, paclet:guide/ListingOfAllFormats])}, {▪(RefLinkPlain[New in 6.0: Data Handling & Data Sources, paclet:guide/NewIn60DataHandlingAndDataSources])}, {▪(RefLinkPlain[New in 6.0: Import & Export Formats, paclet:guide/NewIn60ImportAndExportFormats])}})}})