Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Store a String data in JavaCard

JavaCard Applet Development Related Questions and Answers.
User avatar
Marshaldll
Posts: 13
Joined: Thu Jun 11, 2015 2:53 am
Points :32
Contact:

Store a String data in JavaCard

Post by Marshaldll » Thu Jun 11, 2015 3:26 am

As we all know, JavaCard doesn't support String type. But now i need to store String data in JavaCard.What can i do ? any help is appreciated!

User avatar
horse dream
Posts: 76
Joined: Thu May 21, 2015 11:48 pm
Points :138
Contact:

Re: Store a String data in JavaCard

Post by horse dream » Thu Jun 11, 2015 4:14 am

String data can be represented as byte array. Creat byte array first, and then initialize array.
e.g.

Code: Select all

byte string[];
string = {'h', 'e', 'l', 'l', 'o'};


PS: The above code only works fine within the ASCII range of characters.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 51 guests

JavaCard OS : Disclaimer