Skip to content

Latest commit

 

History

History

nginx-stream-binary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

One-Off Coder Logo

Purpose

This application is a simple demonstration of streaming binary data (e.g. Word, Excel, PowerPoint and PDF) back using Flask. There are 2 types of data being streamed back; one being the binary file itself and the other being the base64 encoded version of the binary file. For now, when the binary file is streamed back, it is chunked; however, for the base64 encoded version, there is no chunking (someone work on that and contribute) as the whole file is read and then streamed back. Chunking is important to avoid memory issues.

Docker Hub

Image

Docker

Build it.

./docker-local.sh

Run it.

docker run -it -p 80:80 --rm nginx-stream-binary:local

Observe it.

References

Take a Look!

Check out Martin Fowler. He's my among my favorite coding gurus.

Citation

@misc{oneoffcoder_nginx_stream_binary_2019, 
title={HOWTO stream binary files with Flask}, 
url={https://github.com/oneoffcoder/docker-containers/tree/master/nginx-stream-binary}, 
journal={GitHub},
author={One-Off Coder}, 
year={2019}, 
month={Jun}}