DynamicLibrary from BinaryData

Is (or would) it be possible to open a dynamic library (using DynamicLibrary or its extension) from BinaryData (resource) without creating intermediate physical temp file?

Anything is possible, the ease of doing it is a different question. In general it’s going to be tricky because the OS APIs that exposes the dynamic loader require file paths (not file pointers) to open. I can think of ways to do this in principle but it would be roughly equivalent to reverse engineering/implementing a dynamic loader.

But this begs the question, why? If you have a shared library just package it with your app. If you’re compiling the shared lib in your build, just include the symbols in your executable by linking them statically.