R
RunPod8mo ago
fanbing

How to download image from s3?

When I use requests,a error "cannot identify image file <_io.BytesIO object at 0x7f59d0153600>" .
No description
No description
No description
5 Replies
fanbing
fanbingOP8mo ago
Should use Environment Variables for S3, just like upload image ?
No description
ashleyk
ashleyk8mo ago
runpod.serverless.utils.rp_download()
runpod.serverless.utils.rp_download()
fanbing
fanbingOP8mo ago
thanks. Need set environment variables for s3 in template ?
ssssteven
ssssteven8mo ago
just saw this post. Why would we use this instead of standard python library like requests? I'm also debugging using requests are very slow to download 500kb files, maybe that's why
Want results from more Discord servers?
Add your server