I need to send a "big" file and I'm using RMIIO (which works nice for smalls text files), and I'm also using JavaFX for the user interaction to choose a file. When I try to send a file, the UI freezes. I've tried also to put the code that sends the file in a different thread, but tha JavaFX's app still freezes. Any suggestions to avoid this?
Ideally I would like to show a progressbar in JavaFX while uploading the file...
Thanks for any help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Would you please provide or indicate an example where it works so that I can see the pattern or at least try to understand why what I tried didn't work?
Last edit: Nelson 2016-04-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
(moved from https://sourceforge.net/p/openhms/bugs/19/)
Hi,
I need to send a "big" file and I'm using RMIIO (which works nice for smalls text files), and I'm also using JavaFX for the user interaction to choose a file. When I try to send a file, the UI freezes. I've tried also to put the code that sends the file in a different thread, but tha JavaFX's app still freezes. Any suggestions to avoid this?
Ideally I would like to show a progressbar in JavaFX while uploading the file...
Thanks for any help.
putting the upload into a separate thread is generally the right way to go. can you show some of your code?
Last edit: James Ahlborn 2016-04-09
Check this post on Stack Overflow wher I asked for help to the same problem and where I specify how I roughly tried to do it:
http://stackoverflow.com/questions/36471224/how-to-send-a-big-file-using-rmiio-when-using-javafx-without-freezing-the-ui
Would you please provide or indicate an example where it works so that I can see the pattern or at least try to understand why what I tried didn't work?
Last edit: Nelson 2016-04-09