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_string | string | | 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. |