Jmu5667 Well-Known Member Licensed User Longtime User Apr 25, 2023 #1 Hello I came across this https://www.b4x.com/android/forum/threads/asyncstream-and-flush.146655/ as I had a issue with data not being flushed from an AsyncStreams. I implemented the solution in both B4A (Client App) and B4J (Server). I was wondering (if possible) could it be added, the flush method, as a standard command in the AsyncStreams library, both B4A and B4J, perhaps in the next release. Regards John.
Hello I came across this https://www.b4x.com/android/forum/threads/asyncstream-and-flush.146655/ as I had a issue with data not being flushed from an AsyncStreams. I implemented the solution in both B4A (Client App) and B4J (Server). I was wondering (if possible) could it be added, the flush method, as a standard command in the AsyncStreams library, both B4A and B4J, perhaps in the next release. Regards John.
Addo Well-Known Member Licensed User Longtime User Apr 30, 2023 #2 you can modify AsyncStreams.java file that provided by Erel on Github and write your public method to do Flush eg: B4X: public void Flush() throws IOException { synchronized (out) { out.flush(); } }
you can modify AsyncStreams.java file that provided by Erel on Github and write your public method to do Flush eg: B4X: public void Flush() throws IOException { synchronized (out) { out.flush(); } }