I am trying to read a smartcard(German Gesundheitskarte) using javax.smartcardio
In the definition of the EF \"PD\" its length is specified as 850 bytes. The conten
A small addition to the IMO very helpful answer by Maarten Bodewes about reading larger files, and the suggestion by stajo to use extended Le. I hope this saves others some time and effort.
Trying to use Le for long reads is tricky:
In addition to that, you need to find out first whether the card supports extended Lc/Le at all; the information about this is spread over the ATR historical bytes, the EF.ATR, and the current EF info.
So while it is possible in theory to read large batches of data from a single file, it is a lot of effort in practice, and you cannot do read the entire file with one command either.
Consider above before you take the effort to use extended Le for reading.