Uploading and downloadingdata to a directory on a server.

by bigauto » Fri, 13 Mar 2009 10:25:01 GMT

Sponsored Links
 Hi, I was wondering if there is a simple way to upload and download
data to and from a directory in a server. If I have load and download
from a directory at  http://server.com/filedir , How should I go about
sending the data to a server and giving it a name so that I could
download the same data later? I wrote a method before with java that
saves an arraylist to and from my own pc like this

String filename = "userlist.dat";
                String directory = "dat";

                FileOutputStream fos = null;
                ObjectOutputStream out = null;

                try {
                        fos = new 
                        out = new ObjectOutputStream(fos);
                        out.writeObject(userlist); /////The arrayList 
(userlist) I wanted
to save
                catch(IOException ex){
                        System.out.println("saving list error");

I was wondering if there is a similar method as that.

Other Threads

1. N900 Mac OS X installed

€ac OS X 10.3 installed on Nokia N900 via PearPC, barely usable for
impatient geeks

Jdnya N900 lbh beracun drpd android

Sent from my mobile device

"Indonesian Android Community [id-android]" 

2. Android sqlite unable open database problem


im doing debug with my mobile. My code works in the past, but now is not
working and i dont know why i cant create or open an existing database.

Here is my code:

Could you help me about how to solve this problem?

I read that there is an option from the command line:

emulator -wipe-data but since im not using an emulator to debug the
application (im using my own android mobile), im lost about how to solve the

Thanks in advance.
Best Regards.


3. CPU performance in my nexus

4. changing the background color of an activity

5. Pipe separator "|" in sms

6. Is Possible implement Like Syntax in SQLiteQueryBuilder?

7. Hasil akhir mirink di PIM