SFML community forums
Help => Network => Topic started by: katebasoft on May 20, 2013, 12:21:55 am
-
How can i use resources like images and sounds from a server? While passing through the documentation i have found that i can connect to the server and it's directories as well as downloading files contained, But I'm failing on how i will do the management of downloading, storing and using them, is it possible to use them directly from the server?? :'(
-
No, you really need to download them. Use the FTP classes to download the files from a FTP server, then use them locally as usual. Its the easiest way I can think of :D
-
Next to using FTP, there are many ways to achieve it, but in all cases you'll have to download them (your browser also has to download every image you look at).
How you exactly do this, is up to you, since you want to program it. ;)
Another way would be to download things with the HTTP class and save them directly in memory and use loadFromMemory to access it, here you'd skip the writing and reading part to and from the HDD, it might increase the memory usage though.
-
Thank you for the consultation,