Since Spark 2.0, We can read and get binary files through SparkContext in batch mode. Like
images = sc.binarFiles("path/to/directory")