Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8002111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:16:06+00:00 2026-06-04T16:16:06+00:00

I am trying to save an image from the client side to a folder

  • 0

I am trying to save an image from the client side to a folder using vb.net

“” the image that has the myImage ID “”

<asp:Image runat="server" ID="myImage" ImageUrl="http://www.govcomm.harris.com/images/1F-81-imageLinks650a.jpg" />
<asp:Image runat="server" ID="myImage2" ImageUrl="http://www.govcomm.harris.com/images/2F-81-imageLinks650b.jpg" />

this is just the location where i want to save my image :
i haven’t run or try any thing with this code , i am just wondering how to do this
this location is on the server side

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  Dim saveLocation As String = Server.MapPath("PDFs")
End Sub

Also, I would like to know if there is a way to use the id to save since i might have more than one image to be saved.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:16:08+00:00Added an answer on June 4, 2026 at 4:16 pm

    If you want to upload a file from the client side (from the user via browser) to the server folder, you need to user the FileUpload control

    <asp:FileUpload ID="FileUpload1" runat="server" />
    

    And in your Codebehind, you can save that to a location by Calling the PostedFile.SaveAs method

        If FileUpload1.HasFile Then
            somefileNameWithExtension="file.pdf" ' Replace this with a a valid file name
            FileUpload1.PostedFile.SaveAs(somefileNameWithExtension)
        End If
    

    EDIT : As per the comment

    If you want to download a file from the internet, you can do it with the WebClient classes DownloadFile method. Here is an example.

        Using webClient As New WebClient()
    
            Dim targrtFileName = "D:\\myfile.png" ' 
            Dim sourceFile = "http://converter.telerik.com/App_Themes/images/ccHead.png"
            'read the Source of your image control and replace in sourceFile  variable.
    
            webClient.DownloadFile(sourceFile , targrtFileName)
    
        End Using
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to save an image like this (from an asp.net mvc application): public
I am trying to save out a large image from flash using bitmapdata and
I am trying to save an uploaded image from an iPhone to a server
When trying to save the database using boost serialization, I encounter the segfault that
I'm trying to save an excel spreadhseet from SQL Server Integration Services 2005. Unfortunatly
I am trying to save image captured from web cam with current time.Like 06.06.2010
I am trying to disable the save image dialoge from showing on the iPhone/any
I'm trying to save a file (pdf or image) uploaded from a form into
I am trying to save image from fileupload control into the database public Byte[]
I am trying to save an image from string. so I want to know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.