我有将单个文件发送到用户端的代码:
客户端:
@app.route('/image, methods = ['GET','POST'])
def image():
# CU.close()
SqlPicPlace="SELECT ImgData FROM tablename WHERE ImgSaveID=2 "
CU.execute(SqlPicPlace)
ans=CU.fetchone()
imgBinary = ans[0]
return send_file( io.BytesIO(imgBinary), attachment_filename='a.jpg', mimetype='image/jpg' ,as_attachment=True )
但我想发送多个文件发送到用户端。我该怎么办
HTTP不支持此功能,但您可以将文件压缩到存档中并发送给用户
相关问题 更多 >
编程相关推荐