Fix blob attribute value encoding/decoding

Closes-Bug: #1308393
Closes-Bug: #1308435

Change-Id: I2cf3d44706b7dd0c384245ec7cbe57ef0fd105d8
Merge "Fix blob attribute value encoding/decoding"