## ByteArrayContent class

Represents content based on a byte array.

```java
public class ByteArrayContent : Content
```

## Constructors

| Name | Description |
| --- | --- |
| [ByteArrayContent](bytearraycontent/)(byte[]) | Initializes a new instance of the `ByteArrayContent` class. |

## Properties

| Name | Description |
| --- | --- |
| [getHeaders](../../com.aspose.html.net/content/headers/) Gets the HTTP content headers. |

## Methods

| Name | Description |
| --- | --- |
| [dispose](../../com.aspose.html.net/content/dispose/)() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| [readAsByteArray](../../com.aspose.html.net/content/readasbytearray/)() | Serialize the HTTP content and return a byte array that represents the content. |
| [readAsStream](../../com.aspose.html.net/content/readasstream/)() | Serialize the HTTP content and return a stream that represents the content. |
| [readAsString](../../com.aspose.html.net/content/readasString/)() | Serialize the HTTP content and return a String that represents the content. |

### See Also

* class [Content](../content/)
* package [com.aspose.html.net](../../com.aspose.html.net/)
* package [Aspose.HTML](../../)
