I get a Q about apdu buffer
hi ,i am confuesed by a question about apdu buffer
it is maybe simple for guys here ,i really apriciate any one who relies
i just want to know is there is somegthing bigger than the apdu buffer
what i can do? in the java card api ,it says that"read in portions",so
how to do it?one time there is someting bigger incoming ,still i will
have to call getBuffer() to deal with it,how can i receive the message
in portions? please show me some example
thanks for any help
# 4
If you don't know the total length of the incoming data in advance, that is certainly a problem. The easiest thing is to let the application using the smartcard set the length in advance (by explicit messaging or use of parameters in the first message), which you then use to create an array of the length you need.
I can think of a way to do it on the fly, but it would be horrible both programming and resource management (just create some relatively large number of arrays stored in another array, and then instantiate them and store the partial data in separate arrays as the come in. I don't recommend this if there is any way around it, and I don't think I would ever do it myself, but it should certainly be possible.).