I am kinda new to asp.net and very much confused with "fileStream" read and write concepts.
I want to upload an image file to a local folder and again when I click on "Display Photo (linkButton)" it should display the uploaded image.In this way I want to build an album. so here is what i hv written
Protected Sub btnUploadPhoto_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUploadPhoto.Click
If Not (fileUpload.PostedFile) Is Nothing Then
Dim newFile As New FileStream("C:\Users\PK\Desktop\asp.net projects\10\Photos\" & fileUpload.FileName.ToString, FileMode.Create)
Dim intDocLen As Integer = 0
intDocLen = fileUpl ...
Go to the complete details ...