EntityUtils.ToByteArray(IHttpEntity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.