I would like to convert Hex value to Base64 String, I found one function in PB 2021 to convert but unfortunatlly it is input the Hex value as string so it converting from String to Base64 Not from Hex to Base64.
Any help to do that.
Thank you
I would like to convert Hex value to Base64 String, I found one function in PB 2021 to convert but unfortunatlly it is input the Hex value as string so it converting from String to Base64 Not from Hex to Base64.
Any help to do that.
Thank you
If I look at the example in PB help it suggests it would be Ansi encoded?
Blob lblb_data
String ls_HexStr
CoderObject lnv_CoderObject
lnv_CoderObject = Create CoderObject
// ls_HexStr = lnv_CoderObject.HexEncode(Blob("Test Hex", EncodingANSI!))
ls_HexStr = "5465737420486578"
lblb_data = lnv_CoderObject.HexDecode(ls_HexStr)
messagebox("HexDecode", string(lblb_data, EncodingANSI!))
For HexDecode function it doesn't matter what the Hex value was before. It could also be that it was some binary.
So you can't say what encoding is the result blob. Or you may say: It is the same encoding it was used before. ;-)