Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Public Function UpdateBinary( _
ByVal nOffset As Integer, _
ByVal vbData As Byte() _
) As CardResponseAPDU
This language is not supported or no code example is available.
public CardResponseAPDU UpdateBinary(
int nOffset,
byte[] vbData
)
This language is not supported or no code example is available.
public:
CardResponseAPDU^ UpdateBinary(
int nOffset,
array< Byte >^ vbData
)
This language is not supported or no code example is available.
Parameters
- nOffset
-
Type: int
Byte offset where to begin updating data. The offset must be in the range from 0 through hex '7FFF'.
- vbData
-
Type: byte[]
Data that shall be written to the file at the given offset. Must not be
null
and must not have a zero length or be longer than 256 bytes.
Return Value
Type: CardResponseAPDUThe complete response APDU is returned. The property CardResponseAPDU.IsSuccessful can be used to check whether the update was successful.
Exception type | Condition |
---|---|
The parameter nOffset was outside the permitted range. |
|
The parameter vbData was |
|
The parameter vbData was invalid. |
|
Thrown when a Card Terminal error condition occurs. |
This method uses the following generic command APDU:
CLA 'D6' HI LO LC DATA
, where HI and LO are the high and low
byte of the given offset, LC is the length of the given data and DATA is the given data
array itself.
With some readers, this method can also be used to update data on a synchronous memory card. The UPDATE BINARY APDU sent by this method conforms to the MCT specification part 7 (IC Cards with Synchronous Transmission, Usage of Interindustry Commands) which can be downloaded from www.teletrust.de