VB6 / .NET / Web Service / Image problem

F

Fred

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
 
M

Mike Williams

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
 
A

Al Reid

Fred said:
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.
 
S

Steve Gerrard

Fred said:
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.
 
B

Bob Butler

Steve Gerrard said:
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
 
K

kimiraikkonen

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
"ImageLocation" property to the URL of picture file.
 
B

Bob Butler

kimiraikkonen said:
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 "ImageLocation"
property on picturebox controls there.
 
I

IanR

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 InternetReadFile to copy the file locally for display. Both work with
URLs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top