Solved

read the xml file from FTP

Posted on 2007-04-04
4
596 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sort GridView by ID Descending 1 17
split XML field into many fields from MS Access 21 44
MailAddress in vb 4 29
Customizing XML with Powershell 2 23
Please see preceding article here: http://www.experts-exchange.com/Networking/Operating_Systems/A_11209-Root-Bridge-Election.html Figure 1 After Root Bridge has been elected, then what?..... Let's start by defining a Root Port in la…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

828 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