NotesStream

I was wondering if anyoen could tell me the advantage of using the NotesStream class and it’s associated methods over using Open, Print, Input, etc. when reading/writing text files?

I’ve just used NotesStream for the first time after years of using the other way and haven’t noticed one way having any major advantages over the other. It could be that what I was using it for was very simplistic though.

Just curious :slight_smile:

Emily.

Subject: NotesStream

The advantage will become obvious if you start to work with XML/DXL - then You can see that You don’t have to manually save each row, but You can pass a NotesStream object as an output object to the DXL processor - then it will do all the work for you.

just one advantage, but a big one (IMHO).

Subject: RE: NotesStream

I thought there must be more to it than what I was using it for!

Thanks Kenneth & George!

Subject: NotesStream

Well, I’ve processed image files ‘in memory’ so to speak using streams - in reality there’s still a temp file created on the server (the Domino JVM does this) but there’s no dumping it onto the underlying file system and pulling it off again as far as the agent/user is concerned - it makes databases with many images very manageable. I’ve no idea what the LS equivalent would be but I reckon it’d work in a similar way.

George :slight_smile: