banco de dados firestore adicionar imagem para gravar

Preciso adicionar imagens jpeg ao firestore db records. Minha maneira preferida seria em um Blob, como eu usei nos registros do Sqlite. Eu tive alguns problemas ao tentar isso. A seguir, é minha melhor tentativa até agora:

public Blob getImage() {
    Uri uri = Uri.fromFile(new 
File(mCurrentPhotoPath));
    File f1 = new File(mCurrentPhotoPath);
    URL myURL = null;
    try {

        myURL = f1.toURI().toURL();
    } catch (MalformedURLException e) {
        e.printStackTrace();
    }

    Bitmap bitmap = null;

    BitmapFactory.Options options = new 
BitmapFactory.Options();
    options.inPreferredConfig = 
Bitmap.Config.ARGB_8888;
    try {
        if (myURL != null) {
  ,          bitmap = 
BitmapFactory.decodeStream( 
myURL.openConnection().getInputStream());
            String wBlob = 
encodeToBase64(bitmap,
 Bitmap.CompressFormat.JPEG, 100);
       blob = fromBase64String(wBlob);           
}


    } catch (java.io.IOException e) {
        e.printStackTrace();

    }
    return blob;
}

Meu problema está no
blob = fromBase64String (wBlob);

Eu também tenho um problema ao passar um blob para a classe que define o registro. intent.putExtra ("blobImage", blob); Agradeço qualquer ajuda.

questionAnswers(1)

yourAnswerToTheQuestion