• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple File Upload

 
Ola Daniel
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may have nothing to do with it, but why are you using a DataInputStream? Do the files really contain serialized Java objects?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic