Language

AndroidHttpClient.GetCompressedEntity(Byte[], ContentResolver) Method

Definition

Compress data to send to server.

[Android.Runtime.Register("getCompressedEntity", "([BLandroid/content/ContentResolver;)Lorg/apache/http/entity/AbstractHttpEntity;", "")]
public static Org.Apache.Http.Entity.AbstractHttpEntity? GetCompressedEntity(byte[]? data, Android.Content.ContentResolver? resolver);
[<Android.Runtime.Register("getCompressedEntity", "([BLandroid/content/ContentResolver;)Lorg/apache/http/entity/AbstractHttpEntity;", "")>]
static member GetCompressedEntity : byte[] * Android.Content.ContentResolver -> Org.Apache.Http.Entity.AbstractHttpEntity

Parameters

data
Byte[]

The bytes to compress

resolver
ContentResolver

The content resolver passed to GetMinGzipSize to determine the compression threshold.

Returns

An HTTP entity containing the input data. The data is compressed with gzip when its size reaches the minimum compression size.

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