Hi all,
We’re using HOOPS Communicator with a Service pod that downloads .scz (scene) files on-demand from a file service. The flow is:
-
UI requests a model from Server side.
-
Server downloads the
.sczfile and caches it locally. -
UI tries to load the
.sczusingloadSubtreeFromScz()(client API).
Problem:
-
If the
.sczfile is corrupt, the client sees abad model keyerror. -
The corrupt file remains in the pod cache, so every future request fails.
-
Service has no access to
loadSubtreeFromScz(), because it’s a client-side API.
Question:
What’s the best approach to detect and clean corrupt .scz files on the server side before they reach the client?
We are thinking about:
-
Validating the
.sczas a ZIP archive immediately after download. -
Checking for
manifest.jsonand basic internal structure. -
Deleting the file if validation fails.
Has anyone implemented a server-side integrity check for .scz files in a similar HOOPS Communicator setup? Any best practices or ready-to-use patterns for Server side?