'How can I read image from boto directly
Hello I am triying to call to plt.imread directly wiht a boto3 object without saving previously in the disc, I get the objet with the following code:
s3_obj = s3.Object(bucket_name=bucket, key=uploaded_photo_folder)
img = s3_obj.get()['Body'].read()
In img var is loaded a binary string with the image codec as Base64, but I cannot read with plt.imread.
Is there any way of do this?
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
