How can I download/upload files from web using NT7?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
-
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 frankthearm, Yesterday, 09:08 AM
|
14 responses
47 views
0 likes
|
Last Post Today, 02:19 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:05 PM | ||
Started by Kaledus, Today, 01:29 PM
|
2 responses
8 views
0 likes
|
Last Post
by Kaledus
Today, 02:04 PM
|
||
Started by PaulMohn, Today, 12:36 PM
|
2 responses
16 views
0 likes
|
Last Post
by PaulMohn
Today, 01:48 PM
|
||
Started by Conceptzx, 10-11-2022, 06:38 AM
|
2 responses
56 views
0 likes
|
Last Post
by PhillT
Today, 01:47 PM
|
Comment