http file stream help

BlitzMax Forums/BlitzMax Programming/http file stream help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The following buffers a stream into a bank which because it reads until the end of the stream has a known size and because it is in RAM and not on a computer on the other side of the world is also seekable:
Function OpenBufferedStream:TStream(url:Object)
	Local	bank:TBank
	bank=LoadBank(url)
	If bank Return CreateBankStream(bank)
End Function