Private Sub FileToString(Df() As Byte) As String
Dim DirFilename As String = BytesToString(Df, 0, Df.Length, "UTF8")
' Log (DirFilename)
Return DirFilename
End Sub
Private Sub FileToBytes2(DirFilename As String) As Byte()
'Modificado
Dim imageDir As String
Dim imageFile As String
imageDir = File.GetFileParent(DirFilename)
imageFile = File.GetName(DirFilename)
Return Bit.InputStreamToBytes(File.OpenInput(imageDir, imageFile))
End Sub