#Downloading zip error

1 messages · Page 1 of 1 (latest)

turbid furnace
#

Why do you read the attachment into the BytesIO?

#

You either read it or save, doing both makes no sense

remote sageBOT
#

await save(fp, *, seek_begin=True, use_cached=False)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).

Saves this attachment into a file-like object.
turbid furnace
#

What you did makes no sense.

#

You can pass a path to .save as the fp which will make it save the contents to a file under that path

remote sageBOT
#

class zipfile.ZipFile(file, mode='r', compression=ZIP_STORED, allowZip64=True, compresslevel=None, *, strict_timestamps=True, metadata_encoding=None)```
Open a ZIP file, where *file* can be a path to a file (a string), a file-like object or a [path-like object](https://docs.python.org/3/glossary.html#term-path-like-object).
meager dawn
#

u can try this

turbid furnace
#

God dammit what didn't work how it didn't work what errors did you get what was the outcome that classifies as "didn't work"

#

Sounds like you read the data before saving, thus exhausting the file pointer or whatever

hallow mortarBOT
#
Solved!

Marked the thread as solved. If your question has not been answered, please open a new thread in #1019642966526140566.