Use this method to write binary data in a hexadecimal-encoded string to the stream's current position. If the data contains one or more invalid hexadecimal characters ("0"-"9" and "A"-"F"), an exception will be raised.
If the value cannot be written for any reason, an exception will be raised. However, most types of streams can be expanded dynamically, so writing past the end of the stream will simply result in an increase in the stream size.