Protected Sub UploadButton_Click(sender As Object, e As System.EventArgs) Handles UploadButton.Click
If FileUpload1.FileName > "" Then
Dim UploadedFileMemoryStream = New IO.MemoryStream(FileUpload1.FileBytes)
Dim UploadedFileText As String = System.Text.Encoding.UTF8.GetString(UploadedFileMemoryStream.ToArray)
End If
Tips and tricks for .NET using ASP and VB code.
Get text of uploaded file without saving to disc
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment