G
Guoqi Zheng
Dear sir,
I am trying to save a binary data by below script, however,it always give me
an error of "Could not find a part of the path "C:\temp\". "
Any idea what I did wrong here?
Public Sub SaveAs(ByVal strPath As String)
If strPath.EndsWith("\") = False Then
strPath += "\"
End If
Dim binaryData() As Byte
binaryData = System.Convert.FromBase64String(m_Filestring)
'Write out the decoded data.
Dim outFile As System.IO.FileStream
Dim OutFileName As String = strPath + m_FileName
outFile = New System.IO.FileStream(OutFileName,
System.IO.FileMode.Create, System.IO.FileAccess.Write)
outFile.Write(binaryData, 0, binaryData.Length - 1)
outFile.Close()
End Sub
--
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
I am trying to save a binary data by below script, however,it always give me
an error of "Could not find a part of the path "C:\temp\". "
Any idea what I did wrong here?
Public Sub SaveAs(ByVal strPath As String)
If strPath.EndsWith("\") = False Then
strPath += "\"
End If
Dim binaryData() As Byte
binaryData = System.Convert.FromBase64String(m_Filestring)
'Write out the decoded data.
Dim outFile As System.IO.FileStream
Dim OutFileName As String = strPath + m_FileName
outFile = New System.IO.FileStream(OutFileName,
System.IO.FileMode.Create, System.IO.FileAccess.Write)
outFile.Write(binaryData, 0, binaryData.Length - 1)
outFile.Close()
End Sub
--
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com