Hi ,
Sorry 4 putting same question twice....
My windows application deals wit backing up files and folders in the server.
The user is allowed to browse a file or a folder and then he can back it up in the server
which they can see in the website..just like Xdrive .
Now my problem is that it takes lots of time when I upload a folder.
Let me explain how I have coded..
what i am doing is :
1. When user browse a folder n clicks "Backup now" i recursively take each file
in the folder...converts it into byte n put them in an array list and one by one I sent it to web Service.
That is if there are 10 files then I will be calling web serivice 10 times.
2. Now what web service does is...it takes the file and insert it to oracle data base
and return true to the windows application. Then Windows application takes another file from the arraylist and send it to web service n ...so on...
So what I am asking is ...is it taking more time because the way I am sending files is not the efficient one.
If any one has done something like this and if there is some better way of coding and doing it...
then plz help.....

1 answers
Step through your code and see where it is taking the longest to run. If you really don't want to, get a copy of Ants Profiler (the adverts all over this site) and run that and see where it tells you that you need to fix your code up.
You can get a trial version for 15 days which should be more than enough to sort your problems out.
answered 2 years ago by:
0
This post was imported from csharpfriends, if you have a similiar question please ask it again.
All previous members have been migrated, hope you enjoy the new platform!