....... Function readBinFromFile(ByVal bfilename As String) As Variant
     Dim fl As Long
     Dim FileNum As Long
     Dim binbyte() As Byte
     Dim binfilestr As String
     
     On Error GoTo errHandler
     FileNum = FreeFile
     Open bfilename For Binary As #FileNum   '读两进制文件
     fl = FileLen(bfilename)
     ReDim binbyte(fl)
     Get #FileNum, , binbyte
     Close #FileNum
     readBinFromFile = binbyte
     Exit Function
          
errHandler:
     Exit Function
 End Function