Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

DecodeBase64MBS(s as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Base 64 MBS Encryption Plugin Yes Yes Yes Yes No
Function: Decodes the base 64 text string into its original binary data.
Notes: Improved in MBS Plugin 2.7. Memory needed is around lenb(s)*2.

Some examples using this method:

Feedback, Comments & Corrections

EncodeBase64MBS(s as string,breakposition as Integer, breakstring as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Base 64 MBS Encryption Plugin Yes Yes Yes Yes No
Function: Encodes the binary data in the string into a base64 text string.
Notes: Improved in MBS Plugin 2.7 to support breakposition and breakstring. If you don't need them, just pass 0 and "". Memory needed is around lenb(s)*2.8.

Some examples using this method:

Feedback, Comments & Corrections

uuDecodeMBS(data as string, byref name as string, byref mode as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Base 64 MBS Encryption Plugin 16.0 Yes Yes Yes Yes No
Function: UU Decoding.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.uu")
dim b as BinaryStream = BinaryStream.Open(f)

dim name as string
dim mode as Integer

dim s as String = b.Read(b.Length)
dim d as string = uuDecodeMBS(s, name, mode)

dim p as Picture = Picture.FromData(d)

Backdrop = p
Notes:
Decodes UU encoded data. name and mode properties are filled.
Returns empty text if something goes wrong.
Raises out of memory exception in case of low memory situation.

Feedback, Comments & Corrections

uuEncodeMBS(data as string, name as string, mode as Integer = &o755) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Base 64 MBS Encryption Plugin 16.0 Yes Yes Yes Yes No
Function: UU Encoding.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
dim b as BinaryStream = BinaryStream.Open(f)
dim s as string = b.Read(b.Length)

dim d as string = uuEncodeMBS(s, "test")

f = SpecialFolder.Desktop.Child("test.txt")
b = BinaryStream.Create(f, true)

b.Write d
Notes:
Encodes binary data as text similar to Base64.
The data is prefixed with file name and mode.

Returns empty text if something goes wrong.
Raises out of memory exception in case of low memory situation.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Encryption Plugin.




Links
MBS Xojo Plugins