protected byte[] generateBlobContent(byte[] baseContent,int requiredSize){
  ByteArrayOutputStream bos=new ByteArrayOutputStream(requiredSize);
  while (bos.size() < requiredSize) {
    bos.write(baseContent,0,Math.min(baseContent.length,requiredSize - bos.size()));
  }
  return bos.toByteArray();
}

protected byte [ ] generateBlobContent ( byte [ ] baseContent , int requiredSize ) { ByteArrayOutputStream bos = new ByteArrayOutputStream ( requiredSize ) ; while ( bos . size ( ) < requiredSize ) { bos . write ( baseContent , 0 , Math . min ( baseContent . length , requiredSize - bos . size ( ) ) ) ; } return bos . toByteArray ( ) ; }
generates blob content of the specified size based on basecontent .
