convert file to base64 function output

后端 未结 1 1813
清歌不尽
清歌不尽 2021-01-02 23:41
Public Function ConvertFileToBase64(ByVal fileName As String) As String

    Dim ReturnValue As String = \"\"

    If My.Computer.FileSystem.FileExists(fileName) The         


        
相关标签:
1条回答
  • 2021-01-03 00:13
       Public Function ConvertFileToBase64(ByVal fileName As String) As String
            Return Convert.ToBase64String(System.IO.File.ReadAllBytes(fileName))
        End Function
    
    0 讨论(0)
提交回复
热议问题