Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- List: JavaScript global methods
- JavaScript global method: base64Decode
- JavaScript global method: base64Encode
- JavaScript global method: compile
- JavaScript global method: doHTTPRequest
- JavaScript global method: doSOAPRequest
- JavaScript global method: execute
- JavaScript global method: getLog
- JavaScript global method: help
- JavaScript global method: insertDatum
- JavaScript global method: makeSCWebURL
- JavaScript global method: print
- JavaScript global method: Quit
- JavaScript global method: RCtoString
- JavaScript global method: readFile
- JavaScript global method: setAppMessage
- JavaScript global method: stripHtml
- JavaScript global method: uncompressFile
- JavaScript global method: writeAttachmentToFile
- JavaScript global method: writeFile
- JavaScript global method: xmlstring
JavaScript global method: base64Decode
Converts base 64 string data to its original format.
Syntax
base64Decode( data );
Arguments
The following arguments are valid for this function:
Argument | Data type | Required | Description |
---|---|---|---|
data
|
Binary | Yes | This argument contains the data you want the script to decode to its original format. |
Return values
A binary or string object containing the original data.
Description
This method converts data in base 64 string format to its original format.
Example
This example does the following:
- Reads the contents of a binary file
- Converts the file to a base 64 string format
- Writes the base 64 string data to a local file
- Prints the number of bytes written to the local file system
- Reads the contents of a base 64 string format file
- Converts the data into a binary file
- Writes the binary data to a local file
- Prints the number of bytes written to the local file system
This example requires the following sample data:
- A binary file on the local file system (for example, an image file)
var source = readFile( "C:\\header_left.gif", "b" ); var encode = base64Encode( source ); var encodedFile = writeFile( "C:\\base64EncodedImage.txt", "b", encode ); print( "Wrote " + encodedFile + " bytes to C:\\base64EncodedImage.txt" ); source = readFile( "C:\\base64EncodedImage.txt", "t" ); var decode = base64Decode( source ); var decodedFile = writeFile( "C:\\newImage.gif", "b", decode ); print( "Wrote " + decodedFile + " bytes to C:\\newImage.gif" );