Whitebeam Object Definition

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Object Definition

Method Description

WbString.fromBase64()

Extract the source string from a base-64 encoded argument.

See Also

WbString.toBase64()   

Syntax

WbString = WbString.fromBase64(input_string)

Parameters

The 'WbString.fromBase64' method takes 1 parameter:

Name Type/Value Range/Length Description
input_stringstring  Required. base-64 encoded text string

Results

The 'WbString.fromBase64' method returns WbString:

Type/Value Range/Length Description
WbString   Returns a WbString instance containing the base-64 decoded form of the string parameter

Remarks

Decodes a base-64 encoded string into a standard string.

Note: This is a method method on WbString and so is invoked as WbString.toBase64(str);

Example

base-64 encoding are generally used to encode non-printable binary data into a plain-text format that can be safely delivered over SMTP. This method takes a string and returns a new WbString instance containing the original (decoded) source string.

Note: base-64 encoding is used most often to encode binary, non-printable objects such as images. If the item you are decoding is likely to be a binary object then use Binary.fromBase64() method instead. If the string being decoded came from an email then the mime-type is likely to tell you how to process the encoded data.

The method returns a new WbString instance that to all intents and purposes can be treated as a standard Javascript string object.

Whitebeam release 1.3.36
(loadtime : 11ms)