Making changes in the POST and PUT REST call to accept binary stream.
Making corresponding changes in test to work with binary stream.
A small change in hdf generation method to make it work with binary data.