Hello, I'm writing an application in AIR with which I need to control bandwidth usage during HTTP file transfers (download). Although, I'm not too sure how this can be achieved.
- I looked at URLLoader but it doesn't allow me to control when bytes are read. - I looked at the lower level URLStream object, which looks pretty good to me according to the method readBytes() I could call whenever needed to retrieve the data from the stream. But I've seen no case where I can use that method readBytes(). Loading the URLStream with a URLRequest object would automatically start the download, as does URLLoader. Which I don't want. I want to control when to read bytes from the stream. - I looked at Socket as well, but this is too low level, I'd need to implement all the HTTP mechanism. Any ideas ? Thanks. Regards, Alex