I have the following situation:
I'm writing an importer for the GLTF format (3d graphics). It works fine as far as it is done and reads the data from the files into memory using java.io.FileInputStream
and java.io.File
.
Now I want to add that the gltf/glb files can be loaded from a Server (or other source that is not a local file) (e.g HTTP/FTP interface - possible even a Database).
Unfortunately I can't figure out a way to do this (thought about using java.net.URI
after all URIs can point to files alltough I wouldn't know how to implement it in Java). I have found this question but considering it is from 2013 I figured I'd ask it anyway.
Thanks in advance