Page 1 of 1

How to upload binary data in java card

Posted: Thu Jan 21, 2016 1:48 am
by maybe
I am trying to finish a javacard applet with authentification and key exchange to the terminal. After that, access to an elementary file of the javacard should be possible. Now my problem is I don't know how to put the elementary file to the javacard.

The data that is needed to upload into the EEPROM of the javacard is some binary with a special File ID ("0F1E") .
Can you please help me on how to do this ?

Re: How to upload binary data in java card

Posted: Thu Jan 21, 2016 11:16 pm
by UNKNwYSHSA
There are saveral commands for binary data in chapter "Data unit handling" of specification ISO7816-4.
You can try the command "WRITE BINARY". Set the data file ID to P1-P2, data bytes to the DATA field of the command.

Waiting your message.