Comments (1)
Hi! There is an example for downloading a file. Uploading basically works the same. Here's a shortened version:
var client = new TftpClient("localhost");
var transfer = client.Upload("filename-on-server.pdf");
Stream fileToUpload = File.OpenRead(@"C:\temp\file-to-upload.pdf");
transfer.Start(fileToUpload);
Check the documentation for file downloads for more details:
https://github.com/Callisto82/tftp.net/blob/master/Tftp.Net.SampleClient/Program.cs
Does that help you or do you need more information?
from tftp.net.
Related Issues (20)
- TFTP Client Get & Put problem HOT 2
- Unable to get the copied file location. HOT 3
- Update the nuget package HOT 2
- Update the version information to 1.2
- Unable to send file (with filepath) HOT 1
- Sign the assembly in the nuget package HOT 5
- Create an own nuget package HOT 9
- TftpTransfer fallsbacks to default rather than proposed? HOT 3
- SampleClient produces a System.ObjectDisposedException exception HOT 11
- TftpClient does not provide a good way to add/remove options HOT 3
- Unhandled exception due to race condition in timer construction
- how can i use this library in a form project HOT 1
- RFC 2347 Options Extension HOT 3
- Timeout of Block Acknowledgement is always 5s and not timeout HOT 4
- Very slow transfer of a boot.wim file HOT 3
- LoggingStateDecorator class HOT 3
- Data Packet Block Number 0 Occurs on Large Data Files HOT 2
- Incorrect File Transferring Progress Caused by int-Type Overflow HOT 1
- How i can change the default timeout. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tftp.net.