I want to know how to write a VB code to get Hex code from a binary file. This binary file maybe a .gif / .bmp file

E.g. a picture --> process --> Hex code (numbers)

How to do it?