PowerTCP Zip Compression Tool Product Interop Example
This example demonstrates how the PowerTCP Zip Compression Tool is integrated with the rest of the PowerTCP product line through DartStream technology.
In this example, The WebASP Control is used to grab any file on the Internet. The body of the response from the server is a DartStream. We simply use the FileStore.Add method to add the DartStream then zip. The compressed file is returned as the response to the browser.
Try It! Enter the url of any file on the Internet. For best results, choose a file greater than 1K (to see a worthwhile size reduction) and less than 1 MB (so HTTP retrieval doesn't take too long). Also, be sure to enter the URL of a file that is highly compressable (choose .htm, .asp, .bmp, or .doc files over .jpg, .gif, or .wav files).
View CodeBehind (.cs) source.