Retrieve a model from blob field in database

Hi,

Instead of loading a model from local asset folder, i want to load a model directly from database (ex. BLOB) and assign to any spatial node.

Any body can guide me ?

Thank you

1 Like

You can create and register your own AssetLocator. This asset locator of yours would then serialize the model from the database. Seamless jME integration. There are no ready solutions as far as I’m aware.

1 Like

Is there any example available ?

1 Like

I suggest using ZipLocator as a starting point:

It’s typically registered in simpleInitApp() like so:

        assetManager.registerLocator("TerrainGridTestData.zip", ZipLocator.class);
1 Like