[LibGDX] Loading files from host/server

Hello all!

I am going to write my first Java game with LibGDX and want to store my level data (image and audio files) on an external server. What is a good way to store, retrieve and reference the files across the internet?

I have access to a MongoDB database, but the files may also be stores outside. Network data exchange is made with BSON.

Any ideas? I’ve also tried to ask google, but without success - maybe the wrong keywords.

Thanks in advance!

You could write some php stuff for it (send request to server -> download files), never directly access db within apps.
In my case I used ordinary server on my server to download the files directly, using URL and DataInputStream.
You may have a look at: http://www.coderzheaven.com/2012/05/07/download-file-remote-site-android-simple-method-3/