EntityUtils.ToByteArray(IHttpEntity) Method

Definition

Reads an HTTP entity's content into a byte array.

[Android.Runtime.Register("toByteArray", "(Lorg/apache/http/HttpEntity;)[B", "")]
public static byte[]? ToByteArray(Org.Apache.Http.IHttpEntity? entity);
[<Android.Runtime.Register("toByteArray", "(Lorg/apache/http/HttpEntity;)[B", "")>]
static member ToByteArray : Org.Apache.Http.IHttpEntity -> byte[]

Parameters

entity
IHttpEntity

The HTTP entity whose content is read.

Returns

Byte[]

A byte array containing the entity content.

Attributes

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to