Hello,
I need to upload a file using ftp protocol, any sample csharp code avaliable
?
FTP Server is located on a mainframe and Complete Ftp Session should look
like this.
How could I write a routine for this process ?
//////////////////////////////////////////////////////////////////////////////////////////////////
ftp> open testserver.domain.com
Connected to testserver.domain.com
220-FTPD1 IBM FTP CS/390 V2R5 at testserver, 17:04:25 on 2002-01-31.
220 Connection will close if idle for more than 5 minutes.
User (testserver.domain.com:(none)): MYUSER
331 Send password please.
Password:MYPASSWORD
230 MYUSER is logged on. Working directory is "XXXXX.".
ftp> quote site lrecl=262 recfm=fb tr pri=999 sec=999
200-BLOCKSIZE must be a multiple of LRECL for RECFM FB 200-BLOCKSIZE being
set to 27772 200 Site command was accepted
ftp> put x 'ROPXOM.X.SQ000000.PSFTLCL$(+1)'
125 Storing data set ROPXOM.X.SQ000000.PSFTLCL$.G0005V00
250 Transfer completed (data was truncated)
ftp: 8591884 bytes sent in 40,67Seconds 211,27Kbytes/sec.
ftp>
//////////////////////////////////////////////////////////////////////////////////////////////////
Thank you 3 6985
If you are using .NET 2.0, then I would recommend using the
FtpWebRequest and FtpWebResponse class. I believe they support uploading
files.
If not, check out http://www.indyproject.org. I am sure they have an
implementation there somewhere.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
<co***@coder.code> wrote in message
news:uJ*************@TK2MSFTNGP14.phx.gbl... Hello,
I need to upload a file using ftp protocol, any sample csharp code avaliable ?
FTP Server is located on a mainframe and Complete Ftp Session should look like this.
How could I write a routine for this process ?
////////////////////////////////////////////////////////////////////////////////////////////////// ftp> open testserver.domain.com
Connected to testserver.domain.com
220-FTPD1 IBM FTP CS/390 V2R5 at testserver, 17:04:25 on 2002-01-31.
220 Connection will close if idle for more than 5 minutes.
User (testserver.domain.com:(none)): MYUSER
331 Send password please.
Password:MYPASSWORD
230 MYUSER is logged on. Working directory is "XXXXX.".
ftp> quote site lrecl=262 recfm=fb tr pri=999 sec=999
200-BLOCKSIZE must be a multiple of LRECL for RECFM FB 200-BLOCKSIZE being set to 27772 200 Site command was accepted
ftp> put x 'ROPXOM.X.SQ000000.PSFTLCL$(+1)'
125 Storing data set ROPXOM.X.SQ000000.PSFTLCL$.G0005V00
250 Transfer completed (data was truncated)
ftp: 8591884 bytes sent in 40,67Seconds 211,27Kbytes/sec.
ftp>
//////////////////////////////////////////////////////////////////////////////////////////////////
Thank you
Hi,
<co***@coder.code> wrote in message
news:uJ*************@TK2MSFTNGP14.phx.gbl... Hello,
I need to upload a file using ftp protocol, any sample csharp code avaliable
A lot of thirdt pary classes are around, they have been posted here several
times, look in the archives for links
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
I found a useful Ftp Client Code there
Thank you http://www.gotdotnet.com/Community/U...C-61D8C81D0744
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>, haber
iletisinde şunları yazdı:uG**************@TK2MSFTNGP11.phx.gbl... Hi,
<co***@coder.code> wrote in message news:uJ*************@TK2MSFTNGP14.phx.gbl... Hello,
I need to upload a file using ftp protocol, any sample csharp code avaliable
A lot of thirdt pary classes are around, they have been posted here several times, look in the archives for links -- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: WM Chung |
last post by:
Hello all,
My dotnet application configuration is that the client, Web server and
database all reside in 3 different computers. There is a function which can
browse a file and read in the...
|
by: alfredfx |
last post by:
i'm planning to develop a client server system
the client and server both able to upload picture
client will upload the picture to a folder that reside in the server
while server user can also...
|
by: tolgademirel |
last post by:
I am creating a web application which needs to access data which
resides on the client's computer.
The data is a bunch of text files that are stored in a folder. I need
all of those text files....
|
by: Mr Gordonz |
last post by:
Hi All,
I want to be able to save a file from the client's PC on the server. The
tricky part is the aspx page is never actually seen by the user. Basically,
I have a VB application running on...
|
by: jake |
last post by:
How do you get or save a file from/to a client (button on web page) once
they are authenticated? The client could be Mac, Linux or Windows. Can I do
it all with IIS and ASP.NET?
|
by: Joey |
last post by:
I have a web application with a page where user can go to upload data
files. When they click "Upload", which is an aspnet Button, I want to
be able to instantly hide a couple of textboxes and...
|
by: CGW |
last post by:
I asked the question yesterday, but know better how to ask it, today:
I'm trying to use the File.Copy method to copy a file from a client to
server (.Net web app under IIS ). It looks to me that...
|
by: dinoo |
last post by:
Hi,
I would appreciate if some one could help me out.
I have to read a client side ini file in Aspx page and use that data in
server side processing. Can any one help me out here?
Please refer...
|
by: SAL |
last post by:
Hello,
Is it possible to read a CSV from the Client, and bind my Datagrid to the
data in the CSV file without uploading the file to the Server first?
I have tried and in Debug mode on my...
|
by: pbd22 |
last post by:
Hi There.
I think i need some software design help.
I have a page, server.aspx, that starts uploading video files when it
is loaded via hidden iframe by the client. On the same page is an...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |