title: How to store data larger than 128 byte in JavaCard
body: <p>I can't write data at index above 128 in byte array.
  code is given below.</p>
  
  <pre><code>private void Write1(APDU apdu) throws ISOException
  {
      apdu.setIncomingAndReceive();
      byte[] apduBuffer = apdu.getBuffer();
      byte j = (byte)apduBuffer[4];       // Return incoming bytes lets take 160
      Buffer1 = new byte[j];              // initialize a array with size 160
      for (byte i=0; i&lt;j; i++)
          Buffer1[(byte)i] = (byte)apduBuffer[5+i];
  }
  </code></pre>
  
  <p>It gives me error 6F 00 (It means reach End Of file).</p>
  
  <p>I am using:</p>
  
  <ul>
  <li>smart card type = contact card </li>
  <li>using java card 2.2.2 with jcop using apdu</li>
  </ul>