You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was OK when I played the music on a GET-endpoint after I persisted the meta. However, after I restarted my Spring-Boot application and tried to play the music again, I got the Exception 'InputStream must not be null' when getContent was called. It seemed that the content had not been persisted really.
Do you have any idea? Thanks!
The text was updated successfully, but these errors were encountered:
Sounds like you are not setting a permanent root for the filesystem content store? By default the spring boot starter will choose a new temporary folder in your tmpdir everytime it starts up - giving an experience a bit like using H2 or HSQLDB. Usually fine for testing.
You need to override that behavior with a bean to sets a permanent root. Or, since you're using Mongo, use Mongo's GridFS?). The docs example is also using a temp dir which probably isn't the best example but hopefully you get the point. You need to set a permanent root; e.g. /data/mystore.
Hi,
I am using MongoDB to save the file meta information and use content-fs-spring-boot-starter 1.2.1 to persist the FileStream like this:
It was OK when I played the music on a GET-endpoint after I persisted the meta. However, after I restarted my Spring-Boot application and tried to play the music again, I got the Exception 'InputStream must not be null' when getContent was called. It seemed that the content had not been persisted really.
Do you have any idea? Thanks!
The text was updated successfully, but these errors were encountered: