Hello all, anyone know if its possible to pass a bitmap or bytearray in compose navigation? Seems like a lot of overhead to save to a file and then clean up.
d
dewildte
04/11/2023, 10:22 PM
You could put it in a repository and link it via synthetic ID.
Upon completion of it’s usage it can be removed from the repo.
dewildte
04/11/2023, 10:23 PM
I would personally go down the route that has some extra overhead or infrastructure as opposed to trying to shove it in a system not designed for it.
f
Francesc
04/11/2023, 10:25 PM
besides what Eric said, bitmaps are very large and navigation arguments are saved and restored, and that large file would get you in trouble
Francesc
04/11/2023, 10:26 PM
if you cache, remember that you would need to survive process death; if you provide an ID to your destination to fetch the bitmap, you will get that same ID after process death and you would expect the bitmap to still be there