Retrieving Images from a Zip File

To retrieve images directly from a zip file, first add the following code to the Form_Load event to compress several image files into a zip file:

      Visual Basic

      C#

To allow you to select an image, retrieve a stream with the image data (OpenReader method), and load the image (Image.FromStream method), add the following code to the SelectedIndexChanged event:

      Visual Basic

      C#


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.