Formats/Base64 - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Formats/Base64

Base64 (.b64) File Format

Base 64 file format

 

Description

Examples

Description

• 

Base 64 encoding is a common means of encoding binary data using a 64-character subset of 8-bit ASCII. It is intended to permit binary data to be encoded in contexts where only text data is reliably supported.

• 

The StringTools[Encode] and StringTools[Decode] commands with encoding=base64 can encode and decode strings and ByteArrays using base 64 encoding.

• 

The Import and Export commands can be used to read and write files in the base 64 format.

Examples

Import a binary file as a ByteArray and encode into base 64 format.

newtonFileTools:-Binary:-ReadFileFileTools:-JoinPathexample/newton.bz2,base=datadir

newton669010457496589388389101−41−114−119008−43−12801664503255−27−9732320846812−125−4708−907935−46−10410612226122−82−45−82−1269953105123−85−71−2465−11779109−59184316106−10371−61−103−11018−10333−2835−943337−737−6646−28−118112−9532−53−812918

(1)

encodedStringTools:-Encodenewton,encoding=base64

encodedQlpoOTFBWSZTWWXXjokAAAjVgAAQQAUAIDflnyAgAFREDIPRAAimTyPSmGp6Gnqu066CYwUDaXuruehBi09txRIrEGqZR8OZkhKZIeQjoiEltwe+LuSKcKEgy68dEg==

(2)

StringTools:-Decodeencoded,encoding=base64

669010457496589388389101−41−114−119008−43−12801664503255−27−9732320846812−125−4708−907935−46−10410612226122−82−45−82−1269953105123−85−71−2465−11779109−59184316106−10371−61−103−11018−10333−2835−943337−737−6646−28−118112−9532−53−812918

(3)

See Also

Formats