Hi!
Set stream = ##class(%Stream.FileBinary).%New() Set sc = stream.LinkToFile("C:/Temp/myfile.pdf") While 'stream.AtEnd { Do pOutput.Write(stream.Read()) }
Hi!
Set stream = ##class(%Stream.FileBinary).%New() Set sc = stream.LinkToFile("C:/Temp/myfile.pdf") While 'stream.AtEnd { Do pOutput.Write(stream.Read()) }
Hi!
I don't know if I've understood, but if you want to check if there's any result, you could test with %Next()
Set theresResult = resultset.%Next()
Hello, Rochdi Badis!
Look this link, it may help.