aspose file tools*
The moose likes Servlets and the fly likes Detect if download completed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Detect if download completed?" Watch "Detect if download completed?" New topic
Author

Detect if download completed?

Steve Ford
Greenhorn

Joined: Apr 19, 2004
Posts: 20
I am using ServletOutputStream to send binary data to a user. Is it possible to detect if the download has completed, and the user has NOT canceled the download while it was in progress?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I believe you would recieve some sort of broken stream exception if the user closes the browser before the download is complete.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Detect if download completed?