Groups | Blog | Home
all groups > dotnet xml > may 2006 >

dotnet xml : Transfering XLM files between computers....


Pilence
5/19/2006 12:00:00 AM
Hy!!

Can someone tell me please how to do this type of work done by using
C#......

Pilence
5/19/2006 12:00:00 AM
Sorry, XML files,not XLM....
My mistake....

[quoted text, click to view]

Martin Honnen
5/19/2006 2:05:42 PM


[quoted text, click to view]

An Xml file is not different from other files in the file system or on
the network so you can use tools like FTP to transfer files. Your
requirement "transfer XML files between computers" is to vague, we need
to know how the computers are connected, whether there are any services
(e.g. FTP server, HTTP server supporting PUT) running on the computer
you want to transfer files to.

--

Martin Honnen --- MVP XML
Pilence
5/19/2006 6:02:44 PM
Ok,I thought on transfering XML files through sockets......
How can this be implemented just if you look at the sockets on each
side(every side presents a computer).....Socket on each side has its own
buffer which recevies bunch of bytes.....How can I convert an XML file on
the sending side to that bunch of bytes so my socket can send it,and on the
receiving side,how can this bunch of bytes be converted back to XML file....
This is just a socket-to-socket communication which includes XML file
transfer between them.....
I hope you understand now,what I meen.....

[quoted text, click to view]

Martin Honnen
5/19/2006 6:18:06 PM


[quoted text, click to view]

There is nothing XML specific then to your question. You simply need to
read the bytes of the file (whether that is XML or any other file type)
you want to transfer and write them out.
..NET 2.0 even has a SendFile method
<http://msdn2.microsoft.com/en-us/library/system.net.sockets.socket.sendfile(VS.80).aspx>
so you don't have to deal with byte arrays.

--

Martin Honnen --- MVP XML
Pilence
5/19/2006 9:08:44 PM
Thanks man!

[quoted text, click to view]

AddThis Social Bookmark Button