Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
いくつかのデータを含む blob 列があるテーブルがあります。django で blob コンテンツをダウンロードするにはどうすればよいですか? ここに記載されている解決策を試しましたが、うまくいきませんでした
def download_blob(request, id): contents = BlobModel.objects.get(id=id).blob_field response = HttpResponse(contents) response['Content-Disposition'] = 'attachment; filename=blob.bin' return response