question

farazpourafshin avatar image
0 Votes"
farazpourafshin asked RoyLi-MSFT edited

How can I Transfer file from UWP to WinForm over TCP?

hi,

I want send command with TCP to my UWP App and get the file from it!

I run Stream Socket listener on my UWP and I have WinForm Application sending command to this listener and I want to get file from that connection from UWP.

UWP is run as Kiosk.

in WinForm I using TCPClient.

anybody can help me? how can should implementing that?


windows-uwpwindows-forms
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@farazpourafshin There is detailed process of creating socket in official document, you could refer to it.
If you want to send file, I suggest using DataWriter to achieve it. For receiving data, you can try to use the DataReader class to read the data.

Please refer to the specific code here.


0 Votes 0 ·

0 Answers