Im trying to access some binary data and i am having issues. bindec($Binary) is always equal to 0.
example binary if you raw output to screen:
h‰ h
ÐÐ
Each binary string is 8 characters(Displaying 4 ascii chars). If i try and convert this using bindec(), it doesnt work because it is expecting only 1's and 0's
The example i have to go off of is in VBScript:
T = AscB(MidB(Binary, J, 1))
im trying:
$T = substr($Binary, $J-1, 1);
$T = bindec($T);
and other variations...
any ideas on how to convert that binary output to its integer equivalent?