Skip to main content
6 events
when toggle format what by license comment
Aug 16, 2017 at 17:11 history edited David CC BY-SA 3.0
added 2 characters in body
Jul 28, 2017 at 18:48 comment added Michael Scheper When the StreamingBody just contains a JSON document, such as a device shadow in IoT, how can we tell what it has been encoded with? I've seen a lot of assumptions that it'll be UTF-8, but I don't see this actually documented.
Jan 20, 2016 at 5:10 comment added Mike Slinn I put together a short program that invokes StreamingBody.read(amt=chunk_size) from another thread. It reads 1/3 of the input file (an mp4 video) and gets stuck, possibly because the consumer of the data (ffmpeg), which runs on the original thread, does not actually run. Maybe its STDIN buffer fills and the whole mess grinds to a halt?
Jan 19, 2016 at 20:40 comment added Josh J @MikeSlinn StreamingBody.read(amt=chunk_size) lets you process chunk_size bytes
Jan 12, 2016 at 20:58 comment added Mike Slinn Calling read() loads the entire video (hundreds of MB) into RAM. I need to stream it by inhaling a chunk at a time
Jan 12, 2016 at 16:22 history answered Michael CC BY-SA 3.0