How can I download/upload files from web using NT7?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
downloading/uploading files from web
Collapse
X
-
daglas,
I'm not aware of a supported method you could use, but it should be possible.
I'm including our reference sample on Using StreamWriter to write to a text file:
This should give you information on how to read/write to text files from your hard drive, however I would not be able to give you a full solution for working with files on the web.MatthewNinjaTrader Product Management
Comment
-
I found such code, and it compiles good. I just need to check how good is work
WebClient myWebClient = new WebClient();
Uri ftp_path = new Uri("ftp://FTPLOGIN:[email protected]/file.txt"); // file.txt
myWebClient.UploadFile(ftp_path.ToString(), @"/temp/anyfile.txt"); // anyfile.txt -
Comment
-
What I'm looking to do is add a step of saving a screenshot to a temp location, then running the above code to send it to a FTP site.Originally posted by daglas View PostI found such code, and it compiles good. I just need to check how good is work
WebClient myWebClient = new WebClient();
Uri ftp_path = new Uri("ftp://FTPLOGIN:[email protected]/file.txt"); // file.txt
myWebClient.UploadFile(ftp_path.ToString(), @"/temp/anyfile.txt"); // anyfile.txt -
Is there a way to execute a "save screenshot" from ninjascript?
Ultimately, I would create a button to "send screenshot to FTP" which would do all of the above.
Thanks!
Daniel
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
28 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
183 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
336 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
260 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment