how to write and read data from smart card using java card apdu
问题 I have written an applet and installed it in smart card. But I don't know how to read and write data to smart card? private void readName(APDU apdu) throws ISOException { byte[] apduBuffer = apdu.getBuffer(); for (byte i=0; i<userName.length; i++) { apduBuffer[5+i] = userName[(byte)i] ; } apdu.setOutgoing(); apdu.setOutgoingLength((short)userName.length); apdu.sendBytes((short)5, (short)userName.length); } Is it right code to read data from smart card? please tell me how to write data to