Working on a google cloud storage projectm, I am trying to caclculate the Crc32c value and get the base64 encoding of the long value return by crc32c algorithm. To calculate crc32c I'm using

<https://github.com/GoogleCloudPlatform/crc32c-java/blob/master/src/com/google/cloud/Crc32c.java> 

```
  Crc32c crc32c = new Crc32c();
  crc32c.update(byteSource.read(), 0, byteArrayLength);
  long crcValue = crc32c.getValue();
  byte[] bArray = String.valueOf(crcValue).getBytes();
  String mEncodedCrc = BaseEncoding.base64().encode(bArray);

```

// GCSReturnedCrc is the encoded string returned by google cloud storage

```
 assertEquals(GCSReturnedCrc, mEncodedCrc);   

```

// Results

```
 java.lang.AssertionError: expected [MjY0MDc0ODQwNQ==] but found [nWafdQ==]` 

```

Other related links: <https://developers.google.com/storage/docs/hashes-etags#_JSONAPI>