Hello evryone
I am working on a project where i am allowing a user to add a picture profile. the user can upload an image and i am saving the image on a file.
Here is the code to save the image:
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnUpload.Click Dim fileName As String = Path.GetFileName(FileUpload1.PostedFile.FileName) FileUpload1.PostedFile.SaveAs((Server.MapPath("~/ImageStorage/") + fileName)) Response.Redirect(Request.Url.AbsoluteUri) End Sub
I need your help on how to retrieve the image from the file and to display it on the page?
Thank you in advance
BK