tags:

views:

17

answers:

2

I have two web applications which need to show products' images, but how to let them share the images?

for example, I have websites with urls: http://www.test.com and http://backend.test.com

how could I upload images, store them and share with this two websites?

Many thanks.

A: 

You can do that by first sharing a database that keep the informations about the images.

Then you decide where is the root of your photos, and place them there.

And then you just include the full url path of your photos on the img tags.

Aristos
A: 

You can show images from another server in your web page... If the image is at http://www.test.com/images/someimage.jpg, then you can link to that same image from http://backend.test.com. Just use the full uri to the image, and not a relative path (such as "/images/someimage.jpg")

We do this with our shopping cart.. Our fulfillment program gets the product images from the actual shopping cart on our external web server. It's not too difficult if you control both sites.

David Stratton