473,395 Members | 1,639 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,395 software developers and data experts.

Isolated Storage, XML File Upload

Hello,

My client needs to collect data on a disconnected computer. I am
hoping I could store data in Isolated Storage as XML files and expose
later to a server (does anyone have experience with Isolated Storage)?
The solution I am looking for would be to have a connection string or
url in the config file and a button the user could push that would
automatically transfer files to server. The big caveat here is that I
do not get to lay my hands on the server so the server side
implementation would need to be manageable via limited development and
across several different server side implementations.

Is there some way I can automate a FTP service from the client side?
Does anyone have any other ideas?

Thanx Jim

Nov 3 '06 #1
3 2581

First, I used (and contributed) to this
http://www.codeproject.com/cs/internet/ftplib.asp

You either need to create a Scheduled Task, OR a WindowsService. Scheduled
task is easier to implement of course.

You also don't want to upload files already uploaded.
Use the library above, and you can compare dates.
(if clientFile.date serverFile.date)
{
// Upload the File!
}

...

The server can "watch" for files also:

FileSystemWatcher serviceWatcher = new FileSystemWatcher();
serviceWatcher.Path = "C:\uploadedFTPFiles";
// filter to watch only .DLL files
serviceWatcher.Filter = "*.dll";
// only handle changed, created, and deleted events
serviceWatcher.Changed += new FileSystemEventHandler(MyMethod);
serviceWatcher.Created += new FileSystemEventHandler(MyMethod);
serviceWatcher.Deleted += new FileSystemEventHandler(MyMethod);

this is just a snipplet, but might get you going.

"U.C." <jm*****@ucalgary.cawrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hello,

My client needs to collect data on a disconnected computer. I am
hoping I could store data in Isolated Storage as XML files and expose
later to a server (does anyone have experience with Isolated Storage)?
The solution I am looking for would be to have a connection string or
url in the config file and a button the user could push that would
automatically transfer files to server. The big caveat here is that I
do not get to lay my hands on the server so the server side
implementation would need to be manageable via limited development and
across several different server side implementations.

Is there some way I can automate a FTP service from the client side?
Does anyone have any other ideas?

Thanx Jim

Nov 3 '06 #2
Thanx Sloan, looks like exactly what I am looking for.

A question about the Scheduled Task or WindowsService. I am not sure I
follow why I would need to create. My thoughts would be to provide the
user with an interface to select which files to upload (send from
client to server) and then push the play button. I am missing
something?
>
You either need to create a Scheduled Task, OR a WindowsService. Scheduled
task is easier to implement of course.
By the way thanx a lot.

Jim

Nov 3 '06 #3
If the client is manually uploading, the the client doesn't need anything.

If you want to server to "auto respond", then you'll have to create a
Windows Service (and the FileHandler code).

...


"U.C." <jm*****@ucalgary.cawrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Thanx Sloan, looks like exactly what I am looking for.

A question about the Scheduled Task or WindowsService. I am not sure I
follow why I would need to create. My thoughts would be to provide the
user with an interface to select which files to upload (send from
client to server) and then push the play button. I am missing
something?

You either need to create a Scheduled Task, OR a WindowsService.
Scheduled
task is easier to implement of course.

By the way thanx a lot.

Jim

Nov 6 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jody Gelowitz | last post by:
Exactly what is the size limit of Isolated Storage in the Internet permission set? I have a document indicating it is 10MB (http://msdn.microsoft.com/msdnmag/issues/02/07/NetSmartClients/) ...
3
by: gani | last post by:
hi, how to get the fullpath of created IsolatedStorage directory. thanks. -- gani
1
by: malcolm | last post by:
Hello, We use several user controls and derived custom controls. Some of which actually hit the database at design time to show data (such as filling a list box, etc...) Our c# client server...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Group, After a long week end I am back again. Its nice and refreshing after a short vacation so lets get started with .NET once again. Today we will discuss about Isolated Storage. This is...
0
by: Robert Love | last post by:
I am trying to save some boolean values from checkboxes using isolated storage. I am able to do strings and integers without a problem but I can't work out how to save boolean values without seeing...
7
by: Jon Berry | last post by:
I'm executing an external process from my C# app. It uses a typical command line type interface: program.exe inputfile outputfile I want the outputfile stored in IsolatedStorage. Is there...
1
by: C#Coder | last post by:
I need to create an Isolated Storage File for my assembly with machine level scope. I have used the 'GetMachineStoreForAssembly' method to do this and this creates the Isolated Storage File...
0
by: Daniel | last post by:
I have to interact with a database which is in isolated storage. OleDbConnection requires a data source but I cannot see a method to get the path to my file in isolated storage. What can I do?...
2
by: Andrus | last post by:
WinForms MDI application stores user preferences (form position, sizes, query params etc) in isolated storage. I want to offer user menu selection "Restore defaults" which deletes all those...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.