public class ByteArrayContent extends Content
Represents content based on a byte array.
DEFAULT_HTTP_ENCODING, DEFAULT_STRING_ENCODING
Constructor and Description |
---|
ByteArrayContent(byte[] content)
Initializes a new instance of the
ByteArrayContent class. |
Modifier and Type | Method and Description |
---|---|
protected void |
serializeToStream(com.aspose.ms.System.IO.Stream stream)
Serializes to stream.
|
dispose, dispose, getHeaders, readAsByteArray, readAsStream, readAsString
public ByteArrayContent(byte[] content)
Initializes a new instance of the ByteArrayContent
class.
content
- The content.protected void serializeToStream(com.aspose.ms.System.IO.Stream stream)
Serializes to stream.
serializeToStream
in class Content
stream
- The stream.