By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,939 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,939 IT Pros & Developers. It's quick & easy.

Transfering XLM files between computers....

P: n/a
Hy!!

Can someone tell me please how to do this type of work done by using
C#......
May 19 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Sorry, XML files,not XLM....
My mistake....

"Pilence" <dd*****@gmail.com> wrote in message
news:e4**********@news2.carnet.hr...
Hy!!

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

May 19 '06 #2

P: n/a


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


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
http://JavaScript.FAQTs.com/
May 19 '06 #3

P: n/a
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.....

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:OO**************@TK2MSFTNGP05.phx.gbl...


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


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
http://JavaScript.FAQTs.com/

May 19 '06 #4

P: n/a


Pilence wrote:
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.....


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
http://JavaScript.FAQTs.com/
May 19 '06 #5

P: n/a
Thanks man!

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...


Pilence wrote:
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.....


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
http://JavaScript.FAQTs.com/

May 19 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.