Click here to Skip to main content
15,071,262 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have a folder in one project, which contains user images uploaded manually.

But I have another project, which I need to also access to that folder to retrieve user images uploaded as well.

how can i do this..?
Posted

1 solution

Are you serious?
HTML
<img src="http://www.myOtherSite.net/pictures/oneOfUploadedPictires.jpg" alt="For those sick people who wanted to know that: this is a picture stored on my other site" />


See also: http://en.wikipedia.org/wiki/Hotlinking[^].

—SA
   
Comments
Mannava Siva Aditya 29-Apr-13 4:15am
   
With the absolute path we can do that just for displaying the image but, saving the image makes me thinking more???
   
Good idea, to think more. :-)
You should be more careful with terms and not spare your words. This is not "absolute path". Also, when you say "Save" you mean having some data in memory, in the memory space of some process, of some host, is serialized and stored in the file on the same host. As you can see, I addressed host computer, process and its memory, and some storage, also located on a computer. In your situation, "save" would be something like that, but at least 3 computers are involved: at least two server hosts and at least one client's. Instead of one process, at least 3 can be involved: client's and at least two server's. You should also understand that each single HTTP request followed by HTTP response executes a new instance of your ASP.NET code... You need to explain your scenario in detail, what goes where. "Save" does not look informative...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900