Reading binary data from stdin
        Posted  
        
            by thebeav
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by thebeav
        
        
        
        Published on 2010-05-17T16:34:21Z
        Indexed on 
            2010/05/17
            17:00 UTC
        
        
        Read the original article
        Hit count: 199
        
python
Is it possible to read stdin as binary data in Python 2.6? If so, how?
I see in the Python 3.1 documentation that this is fairly simple, but the facilities for doing this in 2.6 don't seem to be there.
If the methods described in 3.1 aren't available, is there a way to close stdin and reopen in in binary mode?
© Stack Overflow or respective owner