ObjectScript Library.FileBinaryStream convert into a string

578 views Asked by At

How can I create a string a from binary stream? I tried StreamGet and OutputToDevice class methods but that is not returning the string. Is there another class I should use

Thanks :)

1

There are 1 answers

3
rfg On BEST ANSWER

Assuming that stream is a %Library.FileBinaryStream:

set string = stream.Read($$$MaxStringLength)

Note that string can't be more than 7mb, while stream can be bigger.