openBinaryFile package:pipes-safe

Like openFile, but open the file in binary mode See hSetBinaryMode for the differences between binary and text mode.