Is there a way to read a file as byte array in spark?
As of now I am using the below code, but the content of the file changing in byte level. Its an encrypted file, so looking for ways to read the file without any change in byte level. I see lot of question on the same topic, but none provide a satisfactory answer. So posting this question as it could help other also. Thanks
val rawFileRDDEncrypted = spark.sparkContext.textFile("path")