Hi I have to implement Asynchronous data download using IXMLHttpRequest. Please let me know if it is possible and how do I implement OnDataAvailable. How does IXMLHttpRequest will get hooked to OnDataAvailable? The application that has been develeoped is ATL control for drag and drop attachement from Mail Server. When the data is being downloaded from the server it should download in chunks of data as and when it is available. The data will be taken in IStream using IXMLHttpRequest::get_responseStream currently it uses IXMLHttpRequest::get_responseBody(VARIANT) Please help and suggest, please send code snippets and implementation details. Thanks Alpana Dhole
wrote in message news:1171674182.598411.13400@h3g2000cwc.googlegroups.com > I have to implement Asynchronous data download using IXMLHttpRequest. Does it have to be IXMLHttpRequest? See UrlOpenPullStream. Implementing IBindStatusCallback will give you fine control over download process. > The application that has been develeoped is ATL control for drag and > drop attachement from Mail Server. Since you are using ATL, look at CBindStatusCallback. It's a rather crude implementation of IBindStatusCallback. Studying its source code might be useful. -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925