Forums Register Login

Multiple File Upload

+Pie Number of slices to send: Send
I have created a signed applet that accepts a csv file. The file contains the path to several document that a user wants uploaded to my server. My applet reads the directory path of the files and is supposed to convert the file to byte streams. Then transfer the byte streams in an ArrayList to a servlet on my server.

The problem is after reading the files, when ever i attempt to pick the files and convert them to byte streams. The applet crashes after successfully picking the first on and says invalid path or directory.

I have confirmed that the directory if correct. In fact I repeated the same file 21 times just to make sure. on the first file it works. Subsequent attempts to read the file ends up wit the same error invalid file or directory.



Any ideas on why this error might be happening!!
+Pie Number of slices to send: Send
This may have nothing to do with it, but why are you using a DataInputStream? Do the files really contain serialized Java objects?
I am a man of mystery. Mostly because of this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 592 times.
Similar Threads
Accessing image in a zip file
about DataInput streams (chains)
Oracle Datasource Connection
Cant load files into array using listFiles. I think it's an eclipse problem
Problem in streaming & creating files using FileOutputStream
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:49:12.