BlobStoreManager


public class BlobStoreManager
extends Object

java.lang.Object
   ↳ android.app.blob.BlobStoreManager


This class provides access to the blob store managed by the system.

Apps can publish and access a data blob using a BlobHandle object which can be created with BlobHandle.createWithSha256(byte[],CharSequence,long,String). This BlobHandle object encapsulates the following pieces of information used for identifying the blobs:

For two BlobHandle objects to be considered identical, all these pieces of information must be equal.

For contributing a new data blob, an app needs to create a session using BlobStoreManager.createSession(BlobHandle) and then open this session for writing using BlobStoreManager.openSession(long).

The following code snippet shows how to create and open a session for writing:

     final long sessionId = blobStoreManager.createSession(blobHandle);
     t