byte作成
private byte[] getStringData(){ int word = (int)'a'; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { //テキストボックスから値を引っ張る。この辺は適当に変更してください。 int size = Integer.parseInt(byteTb.getText()); for( int i = 0; i < size; i++ ){ baos.write( word ); word++; if( word > 'z' ){ word = 'a'; } } } catch( Throwable t ){ System.err.println(t.toString()); } return baos.toByteArray(); }