Solved

read the xml file from FTP

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now