BBjClientFile::getContents

Description

In BBj 7.0 and higher, this method returns the contents of the file this BBjClientFile represents. If the file does not exist, it reports !ERROR=12.

Syntax

Return Value

Method

string

getContents()

Parameters

None.

Return Value

A string containing the contents of the associated file. If the file does not exist, it reports !ERROR=12.

Remarks

A large file may consume a great deal of memory on the server which can lead to out of memory error conditions. Use this only for small files. BBjClientFile::length returns the size of the file.

See BUI: Interacting with client files for a detailed discussion of the BUI BBjClientFile.

Example

See Also

BBjAPI

BBjThinClient

BBjClientFileSystem

BBjClientFile

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



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.