I have a function that outputs some binary data to a stream. But the stream is abstract, which means that the stream can be a file stream or some other stream. But the stream must be a binary stream that supports the write-byte function. I searched, but could not find an answer.
What I want to do, I have a function that converts some data to gif. But I do not want to output data to a file, I want to output it to memory.
Thank.
source
share