Click here to Skip to main content
15,892,965 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi everyone Can i open and read files from ftp server using c# without downloading file?

What I have tried:

I search some source on internet I only found related to downloading things
Posted
Updated 14-Jul-16 5:41am

No, FTP doesn't have an "edit mode"
Download it, revise it, upload it again.
 
Share this answer
 
Comments
Sake562 14-Jul-16 8:28am    
It is bad way for me
But can i check my file upload to ftp server or no ?
OriginalGriff 14-Jul-16 8:36am    
Sorry? That doesn't make any sense to me.
Remember that we can't see your screen, access your HDD, or read your mind - we only get to work with exactly what you type.
So that sentence without the context you know around it is pretty meaningless. Please try to explain it in more detail.
You can get the file into a stream without saving it as a file

How to: Download Files with FTP[^]

Not sure if that's what your question was or, as suggested in Solution 1, you want to manipulate files on the ftp server itself, which can't be done.
 
Share this answer
 
Comments
Sake562 14-Jul-16 8:28am    
It is bad way for me
But can i check my file upload to ftp server or no ?
You cannot do that.

You MUST download the file, do your operations to it and then upload it back to the FTP server.
 
Share this answer
 
Comments
Sake562 14-Jul-16 8:28am    
It is bad way for me
But can i check my file upload to ftp server or no ?
Dave Kreskowiak 14-Jul-16 8:37am    
Bad way? Who cares? You simply don't have a choice.

Are you asking how to verify if the file was uploaded successfully and accurately?

You've already been told what your options are there.
Sake562 14-Jul-16 8:40am    
I want to check my file really upload to ftp server or no
Dave Kreskowiak 14-Jul-16 9:40am    
Again, you've already been told what your options are, here[^]. Apparently you don't understand them at all?

The proper thing to do would be to reply to that thread, not start a new one.
- Download file to local PC.
- Do whatever you want on local PC.
- if changes are made and you want them on server, upload chabged file to server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900