Hi there,
In my Adobe AIR app (desktop), I wrote a FileDownloader class that use insternally a FileStream instance to write remote files into the application storage directory
The problem is that the UI freezes during the download process (even though i opened the local file asynchronously)
As a workaround, I thought it could be a good idea to use a Worker to download those files, but when I try to write them inside the app-storage directory from my Worker thread,
the Worker writes it in this folder : %appdata%\[Worker].null\Local Store
As you can see, the app-storage directory is inside this folder named "[Worker].null" instead of being in my real app-storage dir (named by my app identifier)
A solution I found is to write the downloaded files to a tmp file, and then, in the main Worker Thread, use moveToAsync to move the file to my app-storage directory, but it's not very clean... and moveToAsync takes time with large files...
Anyone has experienced this issue?
Is it the normal behavior or is it a bug? I think the Worker should have the same app-storage directory as the application that embed it (especially when you set giveAppPrivileges=true in createWorker method)
Thanks
(and sorry for my english)