private byte[] createBigVolume(String useTimeStamp, String useNumberSeq,String format, String charset, String sizeArray) throws IOException, NumberFormatException {
		ByteArrayOutputStream b = new ByteArrayOutputStream();
		DataOutputStream d = new DataOutputStream(b);
// flags  	
    	byte flags=0x00;
		if("TRUE".equals(useTimeStamp)) flags|=0x80;
		if("TRUE".equals(useNumberSeq)) flags|=0x40;
		d.writeByte(flags); 
// TimeStamp
		if("TRUE".equals(useTimeStamp)){
   		 Date date= new java.util.Date();
    	 d.writeLong(date.getTime());
     	                               }
// Number Sequence
		if("TRUE".equals(useNumberSeq)){
   	     d.writeInt(numSeq++);   	
   	    
  	    }
		int size= Integer.parseInt(sizeArray);
		byte[] content= new byte[size];
		
		for(int i=0;i<size;i++){
			content[i]= (byte)(i%10);		
		}		
		d.write(content);
// Format: Encoding  	   
	   if(MQTTPublisherGui.BINARY.equals(format)){
		   BinaryCodec encoder= new BinaryCodec();
		   return encoder.encode(b.toByteArray());
	   } else if(MQTTPublisherGui.BASE64.equals(format)){
		   return Base64.encodeBase64(b.toByteArray());
	   } else if(MQTTPublisherGui.BINHEX.equals(format)){
		   Hex encoder= new Hex();
		   return encoder.encode(b.toByteArray());
	   } else if(MQTTPublisherGui.PLAIN_TEXT.equals(format)){  		  
		   String s= new String (b.toByteArray(),charset);
		   return s.getBytes();
		   
	   } else 
		   
	   return b.toByteArray();
	
				
	}