BBjspObjectSerializer::encodeStream (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

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