Skip to content

Uploading object to S3 #615

@quell01102022

Description

@quell01102022

Hey, so i can see i can use extract and extractall to write to filesystem. But i need an extracted object to write to S3 Bucket like here:

with py7zr.SevenZipFile("file.7z", "r") as archive:
    for image in archive.namelist():
        s3resource.meta.client.upload_fileobj( archive.open(image), Bucket="bucket", Key="key")



# in zipfile, i can use archive.open() for example, how can i achieve same here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions