-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all..
I'm trying to develop an asynchronous upload for big file.
At this end, I use a thread, in this way:
stream = media.getStreamData(); THIS STARTS A THREAD LIKE THIS:
final Thread my_proccess = new Thread(new Runnable() {
@Override public void run() {
//VERY VERY LONG PROCESS using stream
} });
my_proccess.start();
The problem is that under Eclispe, in debug mode, the process starts in asynchronous way.
If I deploy the same code in production environment, to uplaod process is not asynchronous (the stream seems uploaded before the thread starts) and the uplaod windows appear (the windows with the "fake path" c:\fakepath.....).
I'm using zk version 8.0.1.1 on tomcat 8.0.9 (the same in debug and production).
Any suggestion?
Asked: 2016-10-19 22:45:53 +0800
Seen: 12 times
Last updated: Oct 19 '16