Sign inSign up

oneoffcoder/nginx-stream-binary

By oneoffcoder

•Updated about 7 years ago

A simple demonstration of streaming binary data (e.g. Word, Excel, PowerPoint and PDF) using Flask

Image
0

386

oneoffcoder/nginx-stream-binary repository overview

⁠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.

⁠Source

GitHub⁠

⁠Docker

Pull it.

docker pull oneoffcoder/nginx-stream-binary:latest

Run it.

docker run -it -p 80:80 --rm oneoffcoder/nginx-stream-binary

Observe it.

Tag summary

Content type

Image

Digest

Size

49.5 MB

Last updated

about 7 years ago

docker pull oneoffcoder/nginx-stream-binary