Hy!!
Can someone tell me please how to do this type of work done by using
C#...... 5 2271
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#......
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/
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).....S ocket 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*******@yaho o.de> wrote in message
news:OO******** ******@TK2MSFTN GP05.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/
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).....S ocket 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.sock ets.socket.send file(VS.80).asp x>
so you don't have to deal with byte arrays.
--
Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/
Thanks man!
"Martin Honnen" <ma*******@yaho o.de> wrote in message
news:%2******** *******@TK2MSFT NGP04.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).....S ocket 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.sock ets.socket.send file(VS.80).asp x> so you don't have to deal with byte arrays.
--
Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 asp.net with c# to create the WebServices for transfer the files.But
no effecient solutions found.we had problem when passing uploaded file to web
services (which is running our FileServer),it came with serialization error.
|
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 you have your ".cpp" files all ready, without any "#include"
or "#define" in them.
Let's assume that there's 2 source files in this project, "a.cpp" and
|
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 hour the data that reside on AS400 and
transfer into the SQL Server. Services also have to be run in between 8:00 AM
and 5:00 PM
|
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 installer from a hidden share on the network. We want a server
app that we can run somewhere that will be able to send the necessary info to the client apps. Okay, so the problem is that we
don't want to have the users type in the address of...
|
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
| |
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 binary
mode.
according to me, notepad opens files and each byte of the file
read, it converts that byte from ascii to its correct character and
displays
|
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 db1 to be
used to input data by a remote operator, when she is ready I want her
to be able to click a control button to email her new data to db2. This
new data will be added to the table in db2 ready for further
processing.
|
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 installing in other computers it can't display the file on the path (example: the source file are in c:\bugfixes.txt, after install on another computer the object that is suppose to display or make use of this file says "page cannot be displayed" or a...
|
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 XAMPP to created my db here is the path were the db is at
C:\Program Files\xampp\mysql\data
I'm using Dreamweaver to create my site.
Here is the path where all the files are at
C:\Documents and Settings\abc\My Documents\abc\
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |