Guest User

Untitled

a guest
Feb 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. private static string ConvertZipToHexBinaryString(string filePath)
  2. {
  3. byte[] data = File.ReadAllBytes(filePath);
  4.  
  5. //01. Simple
  6. //string strHex = BitConverter.ToString(data);
  7.  
  8.  
  9. //02. If want without '-' the use this one
  10. string hex = BitConverter.ToString(data).Replace("-", string.Empty);
  11.  
  12. return hex;
  13. }
Add Comment
Please, Sign In to add comment