How to create file with APDU

Hello everybody,

It's my first time using Java Card ^_^,I want to create a file and fill the fill with binary data.but i don't know how to create file with APDU commands,so I need help here.

I think that there must be a Manual of the JavaCard's OS in this world,can someone tell me where to download it?

Thanks.

the fllowing is my card:

Samsung S1

Model:TiEx-32J

EEPROM size:32k

Platform Version:OP 2.0.1

Card Manager Status:OP_READY

KMC:40~4F/No derivation

Message was edited by:

AllenHuang

[574 byte] By [AllenHuanga] at [2007-11-27 8:58:21]
# 1

If you look around the forum for a bit, you will see that there is no notion of file systems on JavaCards (lexdabear posted this information less than two hours ago :-)). To store files, you will have to write an applet to hold byte arrays of the required size and handle receiving and sending of these.

As for documentation, you should have a look at the GP (General Platform) specification at http://www.globalplatform.org/, which defines communication between smart cards and other devices, as well as Sun's own JavaCard pages (http://java.sun.com/products/javacard/), which contain several useful resources on JavaCards.

Message was edited by:

Lillesand

Lillesanda at 2007-7-12 21:24:16 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

Thanks Lillesand,

but what i want to do is transfer transmiting APDU commands via smart card reader directly,not a applet in fact.

and i want to do the following:

CREATE FILE,

SELECT FILE

UPDATE BINARY,

READ BINARY.

^_^,i used some native cards ,which always offer a manual of COS,

AllenHuanga at 2007-7-12 21:24:16 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3
If you have a Java Card and GlobalPlatform compliant smart card, refer to this specifications. You won't find there any of the commands listed. Only way is to write an applet and implement this commands on your own.Why don't you have a manual for your card?
lexdabeara at 2007-7-12 21:24:16 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4
Thanks,I thought that may be all the Jave Card have a same command set.It seemed that I shall ask them for the manul.
AllenHuanga at 2007-7-12 21:24:16 > top of Java-index,Java Mobility Forums,Consumer and Commerce...