Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 246 results for
ftpwebrequest
- Page 1
FtpWebRequest
Programming
Software Development
14 Years Ago
by rajeevbhatt17
…: Code: [CODE]Dim myFtpWebRequest As
FtpWebRequest
Dim myFtpWebResponse As FtpWebResponse Dim myStreamWriter As… & strFileName myFtpWebRequest = DirectCast(WebRequest.Create(strURL),
FtpWebRequest
) myFtpWebRequest.KeepAlive = False myFtpWebRequest.Timeout = 20000 myFtpWebRequest.…
FtpWebRequest
Programming
Web Development
12 Years Ago
by migandhi
Hi All, I have configured
FtpWebRequest
to connect to a remote server... It works fine in …
FtpWebRequest Upload creates blank file
Programming
Software Development
9 Years Ago
by G_Waddell
… file we are uploading. if (_FTPDirectory.Trim() != "") { request = (
FtpWebRequest
)
FtpWebRequest
.Create(serverUri + string.Format("/{0}/{1}", _FTPDirectory, fi…
FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by cVz
… the 3rd party FTP classes and use the standard Microsoft
FtpWebRequest
for faster speeds etc... What i want to do is… a treeview! Now here's my code : [code] try { FTPRequest = (
FtpWebRequest
)WebRequest.Create("ftp://iwantstringsman"); FTPRequest.Method = WebRequestMethods.Ftp…
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by cVz
[QUOTE]FTPRequest.Method = WebRequestMethods.Ftp.ListDirectoryDetails; [/QUOTE] there are the details But im just in beta mode for now , never worked with MS
FtpWebRequest
before ... but hey man , like i always say , give me a day and i'll be posting full code snippets on here.. Ps read your messages :P
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by Antenka
This may help you:[url=http://blogs.msdn.com/adarshk/archive/2004/09/15/230177.aspx]Sample code for parsing
FtpwebRequest
response for ListDirectoryDetails[/url]
Re: FtpWebRequest
Programming
Software Development
14 Years Ago
by kvprajapati
Take a look at a thread - [URL="http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/5d2b67e8-d9cb-4025-be1b-aa4379e8fa5a"]http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/5d2b67e8-d9cb-4025-be1b-aa4379e8fa5a[/URL]. I suggest you to use [URL="http://www.codeplex.com/ftpclient"]http://www.codeplex.com/…
Last Shot at FTPWebrequest
Programming
Software Development
15 Years Ago
by cVz
…, Setting URI to ROOT reqFTP = (
FtpWebRequest
)
FtpWebRequest
.Create(new Uri(root)); // Setting Binary …: " + root); try { reqFTP = (
FtpWebRequest
)
FtpWebRequest
.Create(new Uri(root)); reqFTP.UseBinary = true; reqFTP…
Re: Last Shot at FTPWebrequest
Programming
Software Development
15 Years Ago
by cVz
… , Setting URI to ROOT reqFTP = (
FtpWebRequest
)
FtpWebRequest
.Create(new Uri(root)); // Setting Binary to… : " + root); try { reqFTP = (
FtpWebRequest
)
FtpWebRequest
.Create(new Uri(root)); reqFTP.UseBinary = true; reqFTP.…
Re: Last Shot at FTPWebrequest
Programming
Software Development
15 Years Ago
by miculnegru
… new directory child's at every pass ? [code=C#] reqFTP = (
FtpWebRequest
)
FtpWebRequest
.Create(new Uri(root)); reqFTP.UseBinary = true; reqFTP.Credentials = new…
Re: FtpWebRequest Upload creates blank file
Programming
Software Development
9 Years Ago
by pritaeas
If you step through the code, do you see the actual file contents?
Re: FtpWebRequest Upload creates blank file
Programming
Software Development
9 Years Ago
by G_Waddell
Hi, Yes, i'm streaming the file up and I can see there is a file size of 153 bytes as I said it is a small simple text file. ( I check the file size before I even try to connect to the FTP server.)
Re: FtpWebRequest Upload creates blank file
Programming
Software Development
9 Years Ago
by Fenrir()
I've had this in the past and i felt pretty stupid but there wasn't enough space to actually create the file which will probably not be the case seeing as the file in question is so small (But still). Another issue i've come accross was permissions. Try uploading the file without code via windows explorer or another 3rd party application and see if…
Re: FtpWebRequest Upload creates blank file
Programming
Software Development
9 Years Ago
by G_Waddell
Hi all, I feel really stupid but it wasn't my code!!! When I looked at the file size on the clients FTP server it was 1 kb I got my client to open the file on their server and it did have data. So I went back into my windows explorer and tried opening the file - it opened as a blank!! I then selected the option of copying the file to my local hard…
Re: FtpWebRequest Upload creates blank file
Programming
Software Development
9 Years Ago
by pritaeas
Perhaps you set the permissions on the upload folder to write only (which is common).
Re: FtpWebRequest Upload creates blank file
Programming
Software Development
4 Years Ago
by Dennis_22
Everything works properly!!! Thank you very much!!!
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by Antenka
Hello, cVz. StreamReader.ReadToEnd method has this signature (taken from MSDN): [QUOTE]public override string ReadToEnd()[/QUOTE] The returning type is [B]string[/B]. Am I misunderstood something?
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by cVz
I know , but it doesn't , its made up of char's, sadly enough .... i just want to know how to convert this back to string...
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by LizR
But strings *ARE* made of chars.. the fact you're walking through them (at your request) as chars, will mean you get chars back..
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by LizR
I dont read and answer personal messages, unless Ive asked for them.
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by LizR
But as Antenka said, its a string, the string consists of a number of lines.. all worked fine for me as long as I turned passive ftp off (possibly due to where I am) using reader.ReadtoEnd()
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by Antenka
Maybe your troubles caused by way, you use to read from stream? [code=c#] foreach (char S in reader.ReadToEnd()) [/code]
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by cVz
[QUOTE] foreach (char S in reader.ReadToEnd()) [/QUOTE] ????????????????????????????????????????????????? then i get little characters... hmmm...ok something doesnt click here ... error CS0030: Cannot convert type 'char' to 'string' i cant understand why its not reading it because ive even tried converting it ...
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by cVz
Antenka, you were right , readToEnd() is string format , but its not an array ... ahaaaaaa, so how can we make an array here is the new question...
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by LizR
Well, thats been covered enough times on this forum for you to be able to find it. But of course you will ignore me as you have all throughout this thread.
Re: FtpWebRequest , FtpWebResponse ToString(???)
Programming
Software Development
15 Years Ago
by Antenka
[QUOTE=cVz]Antenka, you were right , readToEnd() is string format , but its not an array[/QUOTE] Didn't said, that this is array. That part of code was taken from your's first post ...
Re: Last Shot at FTPWebrequest
Programming
Software Development
15 Years Ago
by LizR
Well First step would be.. What is the path it is unable to find?
Re: Last Shot at FTPWebrequest
Programming
Software Development
15 Years Ago
by cVz
The path would be [code=c#]tfp://servername + "/" + ChildDir + "/"[/code]
Re: Last Shot at FTPWebrequest
Programming
Software Development
15 Years Ago
by LizR
No Thats not the path a path is like /dir1/dir2/ Debug it and finds out
Re: Last Shot at FTPWebrequest
Programming
Software Development
15 Years Ago
by cVz
The path it cannot find is /dir1/dir2/[COLOR="Red"]dir3[/COLOR] i take it, there must be a problem loading the recurseChild within the recurseChild, can you check that out and maybe give me a tip, i am clueless, you know ive been on this one thing for 2 weeks now ...
1
2
3
5
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC