X
X
Xe1ga2020-12-18 13:14:20
Amazon Web Services
Xe1ga, 2020-12-18 13:14:20

What is the best way to transfer an image from one resource to an AWS S3 bucket?

There are url images. What would be the optimal algorithm to take this picture from the resource and place it in the AWS s3 bucket?
So far I see a solution:

  1. download image from request locally to computer as a file
  2. upload image to s3 bucket using boto3

Are there solutions to not store an intermediate image file in my project?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vadim Shatalov, 2020-12-18
@netpastor

AWS Lambda?

I
Ivan Shumov, 2020-12-18
@inoise

Yes, it is possible to get a short-term active spin link for S3 and give it to the client. The client will upload it there himself. notify the server about it. Well, or on s3, set up an event in lambda for post-processing the fact of loading. Depends on what and how we upload

S
Stanislav Bodrov, 2020-12-18
@jenki

You can put something like this on your knee:

wget http://<URL/to/picture> /<temporary/path/picture>

aws s3 mv /<temporary/path/picture> s3://<bucketName>/<path/picture>

then tweak it to fit your needs

V
Vitaly Karasik, 2020-12-18
@vitaly_il1

As far as I understand, there is no other option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question