Convert file to binary

How to convert a file to binary by providing file path

Are you looking for this?

arrBytes = File.ReadAllBytes (FullFilePath);

where arrBytes is an array of Byte

Otherwise let us know more about your case

1 Like

I want to convert the file to the format shown in screenshot

Hey @sowmiya.anbalagan

Could you please let us know the business case you are trying to achieve here ?

Thanks
#nK