diff --git a/demos/s3server/s3server.py b/demos/s3server/s3server.py
index <HASH>..<HASH> 100644
--- a/demos/s3server/s3server.py
+++ b/demos/s3server/s3server.py
@@ -221,7 +221,7 @@ class ObjectHandler(BaseRequestHandler):
         self.set_header("Content-Type", "application/unknown")
         self.set_header("Last-Modified", datetime.datetime.utcfromtimestamp(
             info.st_mtime))
-        object_file = open(path, "r")
+        object_file = open(path, "rb")
         try:
             self.finish(object_file.read())
         finally:
Fix s3server.py to stop truncating downloads of images and other non-text files