469,646 Members | 1,137 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

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
Jan 11 '08 #1
8 1973
"Fred" <fr**@fredthomas.co.ukwrote in message
news:3d**********************************@f47g2000 hsd.googlegroups.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
http://groups.google.com/group/micro...4c96e845dca502
Jan 11 '08 #2
"Fred" <fr**@fredthomas.co.ukwrote in message news:3d**********************************@f47g2000 hsd.googlegroups.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
Jan 11 '08 #3
"Fred" <fr**@fredthomas.co.ukwrote in message
news:3d**********************************@f47g2000 hsd.googlegroups.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
Jan 11 '08 #4
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.

Jan 11 '08 #5
"Steve Gerrard" <my********@comcast.netwrote in message
news:Qc******************************@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

Jan 11 '08 #6
On Jan 11, 5:57 pm, "Bob Butler" <no...@nospam.everwrote:
"Steve Gerrard" <mynameh...@comcast.netwrote in message

news:Qc******************************@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
"ImageLocation" property to the URL of picture file.
Jan 11 '08 #7
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:b7**********************************@i12g2000 prf.googlegroups.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 "ImageLocation"
property on picturebox controls there.

Jan 11 '08 #8
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.

"Bob Butler" <no***@nospam.everwrote in message
news:OO**************@TK2MSFTNGP06.phx.gbl...
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:b7**********************************@i12g2000 prf.googlegroups.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 "ImageLocation"
property on picturebox controls there.

Jan 11 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ken Dopierala Jr. | last post: by
3 posts views Thread by Shailesh Humbad | last post: by
8 posts views Thread by John | last post: by
reply views Thread by Alfonso | last post: by
5 posts views Thread by Peter Lapic | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.