I used a custom function to complete the function, but I found that my function could not convert 8 bytes of data (ULONGLONG) to a number,An overflow error occurs, and I don't know if my 8-byte algorithm is correct
Function BlobToNumber(ByVal BlobValue)
If DOpus.Typeof(BlobValue) = "object.Blob" Then
Select Case BlobValue.Size
Case 1 BlobToNumber = CByte(BlobValue(0))
Case 2 BlobToNumber = CLng(BlobValue(0) + BlobValue(1) * 2 ^ 8)
Case 4 BlobToNumber = CLng(BlobValue(0) + BlobValue(1) * 2 ^ 8 + BlobValue(2) * 2 ^ 16 + BlobValue(3) * 2 ^ 24)
Case 8 BlobToNumber = CLng(BlobValue(0) + BlobValue(1) * 2 ^ 8 + BlobValue(2) * 2 ^ 16 + BlobValue(3) * 2 ^ 24) + CLng(BlobValue(0) + BlobValue(1) * 2 ^ 32 + BlobValue(2) * 2 ^ 40 + BlobValue(3) * 2 ^ 48)
Case Else BlobToNumber = 0
End Select
Else
BlobToNumber = 0
End If
End Function