hi,

this is a bug in the GPK card services. there is already a fix for it, but
unfortunately Gemplus has not updated the card service for GPK on their
web-site for a long time. if you cannot get a working version from Gemplus,
email me and i will send you a version that writes and reads the data
correctly (at least for me). but i would prefer Gemplus to supply the GPK
card services.

regards

  Karl

> -----Original Message-----
> From: Raju J [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 05, 2001 3:34 PM
> To: [EMAIL PROTECTED]
> Subject: [OCF] Problem in reading from GPK8000 card
>
>
> 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.
>
>
>



---
> 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.

Reply via email to