Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

I need help displaying an profile image on a weg page

$
0
0

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


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>