\n" + "\n" + "\n" + "\n" + "\n"; } function printImage(img) { // if (!evt) { // Old IE // evt = window.event; // } // var image = evt.target; // if (!image) { // Old IE // image = window.event.srcElement; // } // src = image.src; link = "about:blank"; var pw = window.open(link, "_new"); pw.document.open(); pw.document.write(makepage(img)); pw.document.close(); } function userCheck() { var baseURL='http://chat.bungeeconnect.com/irc.cgi?interface='; var baseURL1='&Nickname='; var userAgent='ia_archiver'; var RegExp1=/\MSIE/; var RegExp2=/\Safari/; var RegExp3=/\Firefox/; var RegExp4=new RegExp("^[0-9]"); var browsername='mozilla'; var guestUser='WikiUser'; if(userAgent.search(RegExp1)!=-1){ browsername='ie'; }else if(userAgent.search(RegExp3)!=-1){ browsername='mozilla'; }else if(userAgent.search(RegExp2)!=-1){ browsername='safari'; } var nickname='209.234.171.40'; var result=RegExp4.test(nickname); if(Number(result)==1) { var nickname=window.prompt("Please enter your nickname"); window.focus; if(Number(nickname)==0){ nickname=guestUser.concat(Math.round(Math.random()*Math.ceil(Math.random()*234.876))); } var url=baseURL.concat(browsername,baseURL1,nickname); window.open(url); }else{ var url=baseURL.concat(browsername,baseURL1,nickname); window.open(url); } }

Runtime Type : Types : Base64Util

Page Status: Beta

Class Description

Back to Runtime Types

Contents
Inherits From

root→Object→Base64Util

Function Summary
convertBase64ToString Converts a base64 object to a string
convertStringToBase64 converts a string object to a base64
decode Decodes a string value that is encoded in base64
encode Encodes a value of of one of the following data types and encodes it into base64
getLength Gets the length of a base64binary value
Function Detail

convertBase64ToString

Converts a base64 object to a string

Syntax

convertBase64ToString( [in] [base64Binary] orig, [out] [string] result )

Parameters

orig
base64 object
result
string

convertStringToBase64

converts a string object to a base64

Syntax

convertStringToBase64( [in] [string] orig, [out] [base64Binary] result )

Parameters

orig
argument description
result
argument description

decode

Decodes a string value that is encoded in base64

Syntax

decode( [in] [string] encoded, [in] [string] type, [out] [Data] result )

Parameters

encoded
argument description
type
argument description
result
argument description

encode

Encodes a value of of one of the following data types and encodes it into base64:  string, boolean, int8, int16, int32, int64, uint8, uint16, uint32, uint64, float, double, date, time, dateTime

Syntax

encode( [in] [Data] data, [out] [string] result )

Parameters

data
argument description
result
argument description

getLength

Gets the length of a base64binary value

Syntax

getLength( [in] [base64Binary] base64, [out] [uint32] length )

Parameters

 

base64
argument description
length
argument description

 

Example

The following example will take a string round trip from a string to base64 and back to a string again.

var string encodeValue = '1234567890';<br />var string decoded;<br />var string encoded;<br /><br />base64Util.encode(encodeValue, encoded);<br />base64Util.decode(encoded, 'string', decoded);<br />dialog message("Encoded value: " + encoded + " Decoded value: " + decoded);
    Copyright © 2005 - 2008 Bungee Labs. All rights reserved.