Solved

read the xml file from FTP

Posted on 2007-04-04
4
650 Views
Last Modified: 2013-11-29
Hello Experts
      I want to read the xml file from FTP server without download the xml file using c#.net

thanks
polythought
0
Comment
Question by:polythought
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Expert Comment

by:badbearontour
ID: 18851989
Hi

thats not possible, you will have to download it to be able to read it!

Maybe if you explain your reasons for not wanting to download, we may be able to find a better solution

BB
0
 

Author Comment

by:polythought
ID: 18863010
Hello experts

     I want to read the xml file from ftp server and save the data in my database.
there is too many xml file in ftp server almost 20 to 40 files. I want to read all the xml file and saved it's content in my database. but it consume so much time.
because first I want to download the xml file then read it and saved it into the
database.So I want to read the xml file without download from ftp. it's possible or not?

thanks
polythought
0
 
LVL 7

Accepted Solution

by:
badbearontour earned 500 total points
ID: 18897157
Hi Polythought,

Its not possible to read a file from an ftp server without downloading it first... couldn;t you download it once and then read it into your database? Then at least any further work could be done with the database and not the flat files.
An alternative may be if you can get http access to the ftp folder, then you could use a webclient to 'read' the files and then you could dump the webclient contents into a table

BB
0
 
LVL 4

Expert Comment

by:rwaldicott
ID: 19033980
You can do this by downloading the file to memory.  See the Secure FTP Factory for .NET component.

http://www.jscape.com/sftpdotnet/

The topic Classes > Ftp > Downloading files > Downloading files to memory covers this:

http://www.jscape.com/sftpdotnet/docs/userguide/html/index.html

0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSL is a very common protocol used these days when browsing the web.  The purpose is to provide security to communication, but how does it do it?  There are several pieces at work that have to be setup before SSL will even work and it requires both …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question