Results 1 to 10 of 10

Thread: [:: Is it possible to download web image to the application??? ::]

  1. #1

    Thread Starter
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Lightbulb [:: Is it possible to download web image to the application??? ::]

    Hello all,

    Is it possible to download an image from web directly to our application?

    If so, can someone please guide me on HOW?

    Thanks in advance.

    Trusted




    <= Please click on and rate if you like this post

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: [:: Is it possible to download web image to the application??? ::]

    There are several ways, if you just want to display the image you can simply use a PictureBox.
    Code:
        PictureBox1.Load("http://www.somedomain.com/images/someimage.gif")

  3. #3

    Thread Starter
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Re: [:: Is it possible to download web image to the application??? ::]

    Hello Joacim,

    Thanks for your reply.

    No no.. not like that... I want to use app to download images [any image from web] where web addresses could be any.

    Like for example, when I right click on [any] image, it may show a link to download to MyApp???

    Or any other ways like when MyApp is running then if I download any image it should directly download to MyApp???

    I hope you understand what I am looking for.

    Trusted




    <= Please click on and rate if you like this post

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: [:: Is it possible to download web image to the application??? ::]

    Quote Originally Posted by Trusted View Post
    I hope you understand what I am looking for.
    No, actually I don't. What do you mean with "when I right click on any image"? Do you mean when you right click in a web browser? And what does then "download to myapp" really mean? You can right-click on an image in your web browser today and select to save it. If you save it to a predefined folder then your app could scan that folder for images every time you start it.

    I'm sorry that I can't be of any more help but I just don't understand what you want to do.

  5. #5
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: [:: Is it possible to download web image to the application??? ::]

    Just like Joacim said. You can pass the address as a argument to your app. Then just use a variable where he has the literal, which will work for any picture. There are many ways to get the address to your app. If you want to right-click on your browser then you would have to write a plug-in. You can add browser capabilities to your app and get it that way. Your call.
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

  6. #6

    Thread Starter
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Re: [:: Is it possible to download web image to the application??? ::]

    Hello Joacim,

    Sorry for not explaining well. Here another try....

    Quote Originally Posted by Joacim Andersson View Post
    No, actually I don't. What do you mean with "when I right click on any image"? Do you mean when you right click in a web browser? And what does then "download to myapp" really mean? You can right-click on an image in your web browser today and select to save it. If you save it to a predefined folder then your app could scan that folder for images every time you start it.

    I'm sorry that I can't be of any more help but I just don't understand what you want to do.
    Yes "When I right click on any image" means in a web browser... You are correct.

    "Download to MyApp" means to my application or My Form.

    You may better understand by this image below:



    This is a kind of Image Downloader. please let me know if you need further clarification.

    And please don't be on me, I am a noob

    Trusted




    <= Please click on and rate if you like this post

  7. #7

    Thread Starter
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Re: [:: Is it possible to download web image to the application??? ::]

    Hello Marman,

    Thanks for your reply. I am trying to understand

    Trusted




    <= Please click on and rate if you like this post

  8. #8
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: [:: Is it possible to download web image to the application??? ::]

    I wish I could be more help, I haven't done anything with browsers. But I believe there is a control you can put on a form that will act as a browser that you can use. Unless you insist on using a 3rd party browser, then you must create a plugin. If you create your own browser there should be a way of getting the image address that you can pass to a picturebox or copy to your hard drive.
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

  9. #9

    Thread Starter
    Hyperactive Member Trusted's Avatar
    Join Date
    Jun 2010
    Location
    Don't Know, Cause, I am a Newbie :P
    Posts
    269

    Re: [:: Is it possible to download web image to the application??? ::]

    Hello Marman,

    Infact, I will be using my own browser in another form. When a user clicks on 'Download Images' button, a new form [a browser] will open.

    But I don't know how to work with it.

    Trusted




    <= Please click on and rate if you like this post

  10. #10
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: [:: Is it possible to download web image to the application??? ::]

    Check the properties. It probably returns a collection of some sort where you can find what you need. It can also be nested pretty deep. Check everything. Also try searching this forum and the web for whatever control you are using for browsing. At the very least you can parse the HTML to get the name of the picture, but I bet there is an easier way.

    Maybe someone has used the browser control on this forum and knows?
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

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