BBjAPI::asBytes

Description

This method returns a byte[] object, typically to pass into a Java method that expects a byte[] array.

Syntax

Return Value

Method

byte[]

asBytes(string sourcestring)

Parameters

Variable

Description

sourcestring

Any string-type object that BBj is willing to treat as a byte[].

Return Value

This string as a byte[] array.

Example

rem ' BBjAPI::asBytes

bytes! = bbjapi().asBytes(fill(1024,$00$))
bytes! = bbjapi().asBytes("hello world")

See Also

BBjAPI

Calling Java From BBj

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.