code: public final int writeTo(final OutputStream os,int offset, int maxWriteSize) throws IOException {
          int bytesToWrite = Math.min(blobReference.getBytes().length - offset, maxWriteSize);
          os.write(blobReference.getBytes(), offset, blobReference.getBytes().length);
          return bytesToWrite;
      }
docs: Writes the parameter to an outputstream.
  
  @param os the outputstream to write to
  @throws java.io.IOException if we cannot write to the stream