ImageGear for .NET User Guide > Using ImageGear for .NET > Loading/Saving Pages and Documents > Loading Pages and Documents from Internet |
ImageGear provides a specialized stream class for loading of images from internet: ImGearWebStream Class. This class is most useful for loading multipage images, because it downloads only the necessary portion of remote file.
ImGearWebStream Class only supports loading images from servers that use HTTP protocol.
The following example demonstrates how to load a page from a remote document using ImGearWebStream Class:
C# |
Copy Code |
---|---|
ImGearPage igPage; using (ImGearWebStream igWebStream = new ImGearWebStream ("http://localhost/MULTIPAG.TIF")) igPage = ImGearFileFormats.LoadPage(igWebStream, 2); |