I am building an app with Kotlin frontend/Python backend and I want to display an image that is in bytecode. My python script uses BytesIO() (https://docs.python.org/3/library/io.html#io.BytesIO) to return image's bytecode (ex. <_io.BytesIO object at 0x6f2496j0>) and I want to use kotlin to display its image.
Is this even possible? If so, how can I assign image values to imageView id for example? Sample code of it will be much appreciated.
Thank you.