This content has been marked as final. Show 3 replies
ISO7816 and Java Card spec defines that a command and response must match in terms of short or extended length APDU.
If you want to get an extended length response you need an extended length command as stated by lexdabear. You could send 00 B0 00 00 *00 00* which will ask for up to 65,536 bytes. It is the extended length equivalent Le = 0 in standard length APDU's.
Java Card limits the payload to 32k. Also be aware that Le is 2 bytes for case 4 APDU and 3 bytes for case 2.