WebSocketSend Method (FileInfo) |
Namespace: Sfs2X.WebSocketSharp
public void Send( FileInfo fileInfo )
A FileInfo that specifies the file to send.
The file is sent as the binary data.
Exception | Condition |
---|---|
InvalidOperationException | The current state of the connection is not Open. |
ArgumentNullException | fileInfo is . |
ArgumentException | The file does not exist. -or- The file could not be opened. |