VB6 / .NET / Web Service / Image problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred

    #1

    VB6 / .NET / Web Service / Image problem

    Hi People,

    I have a bit of a problem on my hands and wondered if anyone here has
    done anything similar!

    I have a VB6 application that displays an image stored locally (all
    easy stuff so far). However I want to store images from all offices
    across the country in a central location and then if someone from one
    office goes into another I want to call a web service to get their
    photo from the central photo store, download it to the local office
    and display it as I do the locally held images. More than that I then
    want to have a second monitor that will also displays the image.


    The main VB6 app cannot be re-written to .net
    The second monitor display will have to be .net as (as far as I know)
    VB6 has not way of controlling which screen a form is displayed on.
    I cannot use the file system or map a drive from sub office to head
    office

    So this is how I see it happening:

    VB6 Main app call a .net web service to get the image return it as an
    adodb stream or byte array?

    Create a .net dll to display the image on the second monitor that the
    main vb6 app can pass the image to (not sure if or how that can be
    done yet)


    Does anyone know if this is possible or a better way to do it?

    Many Thanks

    Fred
  • Bob Butler

    #2
    Re: VB6 / .NET / Web Service / Image problem

    "Fred" <fred@fredthoma s.co.ukwrote in message
    news:3ddaf0de-25ed-48e8-9f16-9b470d23a6ca@f4 7g2000hsd.googl egroups.com...
    The second monitor display will have to be .net as (as far as I know)
    VB6 has not way of controlling which screen a form is displayed on.
    Start here



    Comment

    • Al Reid

      #3
      Re: VB6 / .NET / Web Service / Image problem

      "Fred" <fred@fredthoma s.co.ukwrote in message news:3ddaf0de-25ed-48e8-9f16-9b470d23a6ca@f4 7g2000hsd.googl egroups.com...
      Hi People,
      >
      I have a bit of a problem on my hands and wondered if anyone here has
      done anything similar!
      >
      I have a VB6 application that displays an image stored locally (all
      easy stuff so far). However I want to store images from all offices
      across the country in a central location and then if someone from one
      office goes into another I want to call a web service to get their
      photo from the central photo store, download it to the local office
      and display it as I do the locally held images. More than that I then
      want to have a second monitor that will also displays the image.
      >
      >
      The main VB6 app cannot be re-written to .net
      The second monitor display will have to be .net as (as far as I know)
      VB6 has not way of controlling which screen a form is displayed on.
      I cannot use the file system or map a drive from sub office to head
      office
      >
      So this is how I see it happening:
      >
      VB6 Main app call a .net web service to get the image return it as an
      adodb stream or byte array?
      >
      Create a .net dll to display the image on the second monitor that the
      main vb6 app can pass the image to (not sure if or how that can be
      done yet)
      >
      >
      Does anyone know if this is possible or a better way to do it?
      >
      Many Thanks
      >
      Fred
      If it were me (and I have done this before with a central image repository) I would use .NET to write a COM wrapper for accessing
      the Web service. The COM dll can then be used in a VB6 application and the entire client can be written in VB6. It does, however,
      require that the .NET Framework be installed on the client machines.

      --
      Al Reid


      Comment

      • Mike Williams

        #4
        Re: VB6 / .NET / Web Service / Image problem

        "Fred" <fred@fredthoma s.co.ukwrote in message
        news:3ddaf0de-25ed-48e8-9f16-9b470d23a6ca@f4 7g2000hsd.googl egroups.com...
        The main VB6 app cannot be re-written to .net
        The second monitor display will have to be .net as (as
        far as I know) VB6 has not way of controlling which
        screen a form is displayed on.
        Yes it can. There have been many discussions in this group on the subject.
        Do a search for dual monitors in Google Groups.

        Mike


        Comment

        • Steve Gerrard

          #5
          Re: VB6 / .NET / Web Service / Image problem

          Fred wrote:
          Hi People,
          >
          I have a VB6 application that displays an image stored locally (all
          easy stuff so far). However I want to store images from all offices
          across the country in a central location and then if someone from one
          office goes into another I want to call a web service to get their
          photo from the central photo store, download it to the local office
          and display it as I do the locally held images.
          >
          I cannot use the file system or map a drive from sub office to head
          office
          >
          Can you do FTP? Seems like it would be an easy way to do image files.



          Comment

          • Bob Butler

            #6
            Re: VB6 / .NET / Web Service / Image problem

            "Steve Gerrard" <mynamehere@com cast.netwrote in message
            news:Qc6dnV5WEJ 0TDRranZ2dnUVZ_ smnnZ2d@comcast .com...
            Fred wrote:
            >Hi People,
            >>
            >I have a VB6 application that displays an image stored locally (all
            >easy stuff so far). However I want to store images from all offices
            >across the country in a central location and then if someone from one
            >office goes into another I want to call a web service to get their
            >photo from the central photo store, download it to the local office
            >and display it as I do the locally held images.
            >>
            >I cannot use the file system or map a drive from sub office to head
            >office
            >>
            >
            Can you do FTP? Seems like it would be an easy way to do image files.
            >
            or even a web browser control

            a web service seems like overkill just to get an image

            Comment

            • kimiraikkonen

              #7
              Re: VB6 / .NET / Web Service / Image problem

              On Jan 11, 5:57 pm, "Bob Butler" <no...@nospam.e verwrote:
              "Steve Gerrard" <mynameh...@com cast.netwrote in message
              >
              news:Qc6dnV5WEJ 0TDRranZ2dnUVZ_ smnnZ2d@comcast .com...
              >
              >
              >
              Fred wrote:
              Hi People,
              >
              I have a VB6 application that displays an image stored locally (all
              easy stuff so far). However I want to store images from all offices
              across the country in a central location and then if someone from one
              office goes into another I want to call a web service to get their
              photo from the central photo store, download it to the local office
              and display it as I do the locally held images.
              >
              I cannot use the file system or map a drive from sub office to head
              office
              >
              Can you do FTP? Seems like it would be an easy way to do image files.
              >
              or even a web browser control
              >
              a web service seems like overkill just to get an image
              Also he can place a picturebox control on a form then sets
              "ImageLocat ion" property to the URL of picture file.

              Comment

              • Bob Butler

                #8
                Re: VB6 / .NET / Web Service / Image problem

                "kimiraikko nen" <kimiraikkonen8 5@gmail.comwrot e in message
                news:b7623960-4b8b-43c8-adce-c6e5c2d05584@i1 2g2000prf.googl egroups.com...
                Also he can place a picturebox control on a form then sets
                "ImageLocat ion" property to the URL of picture file.

                He's looking to use VB 6 for the front-end and there's no "ImageLocat ion"
                property on picturebox controls there.

                Comment

                • IanR

                  #9
                  Re: VB6 / .NET / Web Service / Image problem

                  Another option would be to use the AsyncRead method of a Usercontrol which
                  could then double as the image display or one could use the InternetOpenxxx
                  and InternetReadFil e to copy the file locally for display. Both work with
                  URLs.

                  "Bob Butler" <noway@nospam.e verwrote in message
                  news:OOMmjCHVIH A.3568@TK2MSFTN GP06.phx.gbl...
                  "kimiraikko nen" <kimiraikkonen8 5@gmail.comwrot e in message
                  news:b7623960-4b8b-43c8-adce-c6e5c2d05584@i1 2g2000prf.googl egroups.com...
                  >Also he can place a picturebox control on a form then sets
                  >"ImageLocation " property to the URL of picture file.
                  >
                  >
                  He's looking to use VB 6 for the front-end and there's no "ImageLocat ion"
                  property on picturebox controls there.
                  >

                  Comment

                  Working...