How to send zip files in the python Flask framework?
问题 I have a flask server that grabs binary data for several different files from a database and puts them into a python \'zipfile\' object. I want to send the generated zip file with my code using flask\'s \"send_file\" method. I was originally able to send non-zip files successfully by using the BytesIO(bin) as the first argument to send_file, but for some reason I can\'t do the same thing with my generated zip file. It gives the error: \'ZipFile\' does not have the buffer interface. How do I