473,418 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Transfering XLM files between computers....

Hy!!

Can someone tell me please how to do this type of work done by using
C#......
May 19 '06 #1
5 2261
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


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
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


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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Murugavel | last post by:
Hi, We maintain a seperate server for files which are uploaded by the user(Clients). We run our site in Production server,we need to Keep our uploaded files in our file server. we use...
18
by: JKop | last post by:
Here's what I know so far: You have a C++ project. You have source files in it. When you go to compile it, first thing the preprocessor sticks the header files into each source file. So now...
2
by: Niyazi | last post by:
Hi, I have BIG question and I gues it is the BEST question. I have a problem that I am guessing the best solution is to create some sort ..NET Services. This Service(s) must check every...
14
by: Adrian Parker | last post by:
For deployment reasons, we don't want to have to install our large app on each network client manually; we'd like to have our users run a very small app on their clients that basically runs the main...
1
by: Dzemo | last post by:
Is there any way to transfer picture files between two computers on LAN. Do I need to use sockets or... Any ideas or examples THX
10
by: joelagnel | last post by:
hi friends, i've been having this confusion for about a year, i want to know the exact difference between text and binary files. using the fwrite function in c, i wrote 2 bytes of integers in...
10
by: Walshi | last post by:
Hi all, I'm a relative newby to access and VBA etc. My forms and tables etc are working great and saving lots of time...However... I have two databases with the exact same table format. I want...
4
kiseitai2
by: kiseitai2 | last post by:
Hi everyone. I'm having a litle trouble lately with my applications. The main problem right now is that my applications can find the files on the path given by me, however, after publishing and...
0
nomad
by: nomad | last post by:
Hello Everyone: I need some help with transfering a db from my computer to the host. I'm not to sure how to do this so that the webpage know where the db is at. Here is what I have... I'm using...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.