Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET WebForms C#3.5 , +
Hi I am using Visual Studio 2008 (.NET framework 3.5), currently I am uploading images to my ASP.NET webforms application in c#. If some one copies my image url and opens in new window/tab then complete directory structure of my site is revealed to the user, some thing like http://domain.name/images/companylogo/logo599.jpg
I want to hide my directory structure and show image path something like:
 
http://www.zameen.com/common/resize.php?img=4/303088.jpg&d=&w=250&h=147&r=1
http://www.zameen.com/common/resize.php?img=7/165/bhurbun_continental_apartments_380.jpg&d=250&w=250&h=180&r=1
http://www.zameen.com/common/resize.php?img=2/156050.jpg&d=80&m=1
 
To hide my site directory structure I configured the imageshack API to upload images but requirements are like the path above. I am not getting how to manage the path format stated above. Thanks for any help.
Posted 17-Jun-14 21:23pm
Comments
Smruti(The Coder) at 18-Jun-14 2:45am
   
This might help :-
 
http://weblogs.asp.net/scottgu/tip-trick-url-rewriting-with-asp-net
Kornfeld Eliyahu Peter at 18-Jun-14 3:35am
   
You may use my idea from here - http://www.codeproject.com/Tips/714181/Stream-Your-Documents-Using-Simple-Web-Page

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 275
1 OriginalGriff 230
2 BillWoodruff 173
3 CPallini 155
4 Kamal Rocks 144
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 18 Jun 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100