I know there is a soft cap on incoming message(about 2MB), but it appears that this extends to return values as well:
Message: IC0504: Canister rrkah-fqaaa-aaaaa-aaaaq-cai violated contract: ic0.msg_reply_data_append: application payload size (4224046) cannot be larger than 3145728
I see that cancan has implemented retrieving chunks and assembling them on the client-side, but it would be nice if we could return large files via http_request with just one call. It makes src of media and image tags much easier. I’ve also seen http_request_stream_callback floating around, so maybe this can be used for larger file sizes, but I’m not sure how it works. Does anyone have any sample code they can point to?