Link to home
Start Free TrialLog in
Avatar of sayeth
sayeth

asked on

convert decimal array to byte array

i want to convert decimal array to byte array.
for example: i want to reverse this code.

Dim buffer As Byte() = {5, 6, 7, 9, 122, 45}
Dim float As Decimal = BitConverter.ToInt64(buffer, 0)
ASKER CERTIFIED SOLUTION
Avatar of APaskiewicz
APaskiewicz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sayeth
sayeth

ASKER

i load the data from database into a byte array. convert it to decimal(BitConverter.ToInt64(byte(), 0))
use it in my program. i m trying save back to the database. i need to convert the decimal back to byte()
to save it