Hi ,
I am trying to write a data which is about 350bytes on to the
smartcard.It is writing without any Exceptions,but when I read back the same
data from smratcard i am unable to get back the same data.I am geting
correct data upto 300 bytes.after that i am getting some junk data.
I am using GemPC410 Card Reader,GPK8000 card and GPK0.2 card services.Could
anybody please help me to get back the data correctly?
Here is the CODE i am using to write and read :
/*fus is a GPKFileUtilityService variable and writeData is the data i am
writing to the card*/
CardFilePath ef = new CardFilePath(":3F00:D000:D001");
System.out.println("\nCreating EF " + ef);
fus.createTransparentFile(ef,writeData.length, null);
fus.setMaxDataLength(250);
System.out.println("\nWriting " +writeData.length+ " bytes to " + ef);
fus.write(ef,0,writeData,0,writeData.length );
System.out.println("\nReading from the file"+ ef);
byte[] readData=fus.read(ef, 0,writeData.length );
Raju
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.