## WebClient::DownloadData(const SharedPtr\<Uri\>\&) const method


Downloads the specified resource as a byte array.

```cpp
ByteArrayPtr System::Net::WebClient::DownloadData(const SharedPtr<Uri> &address) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| address | const SharedPtr\<Uri\>\& | The resource's URI. |

### ReturnValue

The byte array that contains the requested resource.

## See Also

* Typedef [ByteArrayPtr](../../../system/bytearrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Uri](../../../system/uri/)
* Class [WebClient](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
## WebClient::DownloadData(const String\&) const method


Downloads the specified resource as a byte array.

```cpp
ByteArrayPtr System::Net::WebClient::DownloadData(const String &address) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| address | const String\& | The resource's URI. |

### ReturnValue

The byte array that contains the requested resource.

## See Also

* Typedef [ByteArrayPtr](../../../system/bytearrayptr/)
* Class [String](../../../system/string/)
* Class [WebClient](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
