473,372 Members | 1,429 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,372 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 2580

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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.