Hi there,
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.....