I have an applet that lists the files contained on a remote server's database. I am able to drag and drop the files, but when getTransferData() is called the applet has to start downloading the files to a temp location to supply the File[]. Windows Explorer and other applications ask for the data when the drag first enters their drop region. Both applications block during the getTransferData call until all files are downloaded, which could be hundreds of files and up to 500 MB. This results in a lot of wasted bandwidth and time if the drop was cancelled.
Is there any way to pass an InputStream[] instead of a File[]? Is there a way to have this happen outside of the GUI thread?
Is there any way to pass an InputStream[] instead of a File[]? Is there a way to have this happen outside of the GUI thread?