code: public byte[] getObjectContent(GetObjectRequest request) {
          BosObjectInputStream content = this.getObject(request).getObjectContent();
          try {
              return IOUtils.toByteArray(content);
          } catch (IOException e) {
              try {
                  content.close();
              } catch (IOException e1) {
                  // ignore, throw e not e1.
              }
              throw new BceClientException("Fail read object content", e);
          } finally {
              try {
                  content.close();
              } catch (IOException e) {
                  // ignore
              }
          }
      }
docs: Gets the object content stored in Bos under the specified bucket and key.
  
  @param request The request object containing all the options on how to download the Bos object content.
  @return The object content stored in Bos in the specified bucket and key.