How can i convert TJSArray to TStream

How can i convert TJSArray to TStream?

A TJSArray is an array of untyped data, i.e. this has not a specific byte length predefined. As such, automatic conversion is not possible. You'll first need to convert the TJSArray to a TJSArrayBuffer (which is an array of bytes) and then you can read this byte by byte into the TStream