---
title: "Working with URL"
canonical: https://www.graphicsmill.com/docs/gm5/WorkingwithURL.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Working with URL
 
With Graphics Mill for .NET you can load files not only from [files](https://www.graphicsmill.com/docs/gm5/WorkingwithFiles.htm.md) or [database](https://www.graphicsmill.com/docs/gm5/LoadingandSavingImagestoDatabase.htm.md). You can even download images from specified URL. The code example below demonstrates it.
 
The idea is very simple: you should use some object which can open a System.IO.Stream over the specified URL and pass this stream into the [Save](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Save.htm.md) method of the [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) class. It will make Graphics Mill for .NET to download this image and decompress it.
 
```
Dim webClient As New System.Net.WebClient

Dim stream As System.IO.Stream = webClient.OpenRead( _
 "http://www.aurigma.com/images/Rotated.png")

Dim bitmap As New Aurigma.GraphicsMill.Bitmap(stream)

stream.Close()

webClient.Dispose()
```
 
```csharp
Aurigma.GraphicsMill.Bitmap bitmap = null;

using (System.Net.WebClient webClient = new System.Net.WebClient())
{
    using (System.IO.Stream stream = webClient.OpenRead(
               @"http://www.aurigma.com/images/Rotated.png"))
    {
        bitmap = new Aurigma.GraphicsMill.Bitmap(stream);
    }
}
```
