title: Use READ BINARY to read more than 256 bytes
body: <p>I am trying to read a smartcard(<a href="http://de.wikipedia.org/wiki/Elektronische_Gesundheitskarte">German Gesundheitskarte</a>) using javax.smartcardio </p>
  
  <p>In the <a href="http://imgur.com/b54eq">definition</a> of the EF "PD" its length is specified as 850 bytes. The content should be a gzipped ISO5589-15 encoded XML string as specified <a href="http://www.cardwerk.com/smartcards/smartcard_standard_ISO7816-4_6_basic_interindustry_commands.aspx#chap6_1">here</a></p>
  
  <p>As CommandAPDU I send</p>
  
  <pre><code>00 B0 00 00 00
  </code></pre>
  
  <p>to get the first 256 bytes.
  After sending</p>
  
  <pre><code>00 B0 00 FF 00
  </code></pre>
  
  <p>I get the next 256 bytes.</p>
  
  <p>But how do I get the rest?</p>
  
  <p>How will I know when the binary data ends?</p>
  
  <p><a href="http://www.gematik.de/cms/media/dokumente/release_0_5_3/release_0_5_3_egk/gematik_eGK_Spezifikation_Teil1_V2_2_0.pdf">German Specification Part 1</a> | 
  <a href="http://www.gematik.de/cms/media/dokumente/release_0_5_3/release_0_5_3_egk/gematik_eGK_Spezifikation_Teil2_V2_2_0.pdf">German Specification Part 2</a></p>