@login_required
def down_img(request, path):
content = Storage().download(path)
from django.http import StreamingHttpResponse
# print(content,6666666666666)
return HttpResponse(content, content_type='image/jpg')
django返回二进制图片
猜你喜欢
转载自www.cnblogs.com/lajiao/p/9277260.html
今日推荐
周排行