开发者

Share a image between two websites by using asp.net mvc?

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜