You can use B4J to implement the backend. I know that it seems a bit complicated at first sight, however once you try it you will see that it is very similar to your B4A code.
B4J has very good support for implementing backend solutions. If you only want to store a single file specific for each user then Firebase Storage might be a good solution.