Results 1 to 3 of 3

Thread: How to simulate "Save Picture As" in VB.NET

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    23

    Angry How to simulate "Save Picture As" in VB.NET

    Hi

    I am facing a problem with VB.NET, can anybody solve my problem?
    I have an asp page, which gives a new image in every request and there are about 100 images stored in a folder on the web server, the asp file generates a random number and based on that random number it creates a copy of the image file from the directory and place it in another directory with the same name [e.g. file name in the source dir is say 12.jpg and the destination image is hotnews.jpg, in the next request the file name of the source dir is say 14.jpg and the destination image is hotnews.jpg] and finally refers to that newly created file with <IMG SRC = "hotnews.jpg">.

    I have a client application developed in VB.NET which uses a AxWebBrowser control to request the ".asp" page, My objective is to save/download the image shown in the browser control into a file in the local disk, for that I am using Net.WebClient, but it is not saving the image displayed in the browser control, but it is saving a new image, and the simple reason for that is the ".asp" page is made in such a way that in each request it will give you a new image.
    How can I save the image displayed in the browser control as if I am simulating "right click -> Save Picture As" on the browser control?

    kajol

  2. #2
    New Member
    Join Date
    Jan 2005
    Posts
    1

    Re: How to simulate "Save Picture As" in VB.NET

    Did you get thisto work? I need something like this too.

  3. #3
    Junior Member
    Join Date
    Jan 2005
    Posts
    16

    Post Re: How to simulate "Save Picture As" in VB.NET

    You would need to consider a solution that deals with cookies, which store and transmit saved data over the internet. I have never programmed using Active Server Pages, so I'm not sure if that helps.
    Philip de Oliveira

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width