Browse files

Add link to french translation, add "problem" and "solution" for cook…

…book-like forma
  • Loading branch information...
1 parent 9dfc73c commit 9c46f585c204d1adf2cbd09fc4226f794c55c342 nux committed with anandology Feb 9, 2010
Showing with 9 additions and 1 deletion.
  1. +9 −1 cookbook/
10 cookbook/
@@ -5,12 +5,20 @@ title: How to Stream Large Files
# How to Stream Large Files
+Other languages: [français](/../cookbook/streaming_large_files/fr) | ...
+## Problem:
+You want to use to stream large files.
This is an example of how you can use to stream large files. You'll find it DOES work as advertised, but you need to make sure you add the Transfer-Encoding chunked header for it to display properly. Otherwise the browser will buffer all data before displaying it to you.
You can't mix basic string and Yield returns in the same method. If you use Yield, you'll have to use yield for everything because your function becomes a generator.
-Simple Example
+##Simple Example:
# Simple streaming server demonstration
# Uses time.sleep to emulate a large file read

0 comments on commit 9c46f58

Please sign in to comment.