My question is how subscribe works in a store. Does it work like a reference? Should upload data be stored in a store or is that bad for performance?
My question is how subscribe works in a store. Does it work like a reference? Should upload data be stored in a store or is that bad for performance?
Data from a store is passed as a reference to subscribers, but it creates a copy in the store when it is set. So, depending on the use case, it might not be the best solution as garbage collection does not run immediately (large files might hit memory limits).
I don't see why you'd load data to be uploaded in memory, you can keep a File reference and possibly create a resized bitmap if you need a image preview while it's uploading.