webservices: Add support for reading attributes in binary mode.