Initiates a Put operation with the given collection metadata, returning a Stream that the consumer writes the content to.
An instance of ObexPutStream connected to the peer server.
| Exception Type | Condition |
|---|---|
| InvalidOperationException | Another operation is in progress. |
| ObexResponseException | The response code returned by the peer is not the one expected at that point in the transfer. This will likely indicate why the peer is unable to accept the tranfer. For instance Window’s Wireless Link application returns 0xC3 Forbidden if the user does not confirm the PUT, and if the transfer fill the disk, fails with 0xCD EntityTooLarge. PalmOS does not prompt the user at the beginning of the transfer, but if the object is too big it fails with 0xC1 Unauthorized. Finally on one model of Nokia phone I've tested against, if the object is too big the phone simply closes the connection. |
| InvalidOperationException | Abort has been called previously and has not completed. |
| IOException | Any IOException that can occur on writing to or reading from a Stream. |
ObexClientSession Class | Brecham.Obex Namespace | ObexClientSession.Put Overload List