BBjspObjectSerializer::encodeStream


Description

In BBj 16.0 and higher, this method encodes a stream into a Base-64 encoded string.

Syntax

Return Value

Method

String

encodeStream(InputStream stream)

Parameters

Variable

Description

stream

the Stream to read and encode

Return Value

a Base-64 encoded data

Remarks

None.

Example

USE java.io.File
USE java.io.FileInputStream

file! = new File("/opt/basis/cfg/jetty.xml")
fis! = new FileInputStream(file!)

REM === Encode the stream
data$ = BBjspObjectSerializer.encodeStream(fis!)

REM === Print the decoded data
print BBjspObjectSerializer.decodeObject(data$)

See Also