Bank memory execution
2 answers
Here's one way to achieve it:
- Create
ByteArrayInputStream
from receivedbyte []
. -
Now use
JarInputStream
to create an in-memory view of the jar file.ByteArrayInputStream bis = new ByteArrayInputStream(byteArray); JarInputStream jis = new JarInputStream(bis);
-
So you have a flask loaded into memory.
- You can now use custom classloaders for further processing. Here's one example you can refer to.
+8
source to share