Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am creating a website in which I need to find out the path of the downloaded files.For instance if there is an image Image1.jpeg, downloaded and saved somewhere in the system.Is there a way through which we can find out the path of that image?
If you mean: how to retrieve an uploaded image, the answer is: not possible. An uploaded image (or just any file) consists of a name an a list of bytes. You have to save it yourself.
If you are asking about downloaded files on the client, well, they are on the client, so outside of your control.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am having an Web Application(ASP.NET MVC, C#), in which I have a functionality of uploading an excel which contains image path. So I need to know can I access the image files from the application?
PS: Images and Excel will be in the user system.
You could make the users send the real images within the file instead of sending only the paths. This would potentially generate a huge file to upload, but I don't know you application.
If image is at user location then there is no way you can access it (how insecure it would be if any website can access your image file in your system)
So your will need user to upload image as well inorder to use it
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have tried FileUpload, it can select only files and also I cannot get full path of the file when I try with browsers other than Internet Explorer. I think I need an alternative for FolderBrowserDialog for asp.net.
You can't get the full filepath from a file being upload, because it's on the client's computer, the browser has no access to this information, for security.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want to save some PDF files in C# project resources. How can I get that resource at run time in stream format to show in PDF viewers correctly? Or have you an idea for this
solution, to embed some PDF files in a class library and show them in a free PDF viewer?
You can use a web control for viewing PDF read the second answer here View PDF through C# .Net desktop App
Your question is vague be precise for better help.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have two IIS: publicIIS and privateIIS. On publicIIS I create a shared folder which is named "Data". I use privateIIS to upload file and save it to "Data". I use file.SaveAs() method but it required the root path. How do I retrieve full path of shared folder? Is it posible?
Actually, the network path when I pass to method SaveAs, it will get physical path.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to fetch images from a Drupal DB to a C# program.
In Drupal DB the image path is:
"public://yourimage.jpg"
However, this is not a usable URI for C#.
How can I get images from Drupal to C# in a secure way?
If you are going to fetch the images from a database, the URL is not important, what you need to know is if the image is in the database and in wich tabel, and if images are stores in file system, in which table is the path. Then, use plain Ado.Net to get those images.
If instead you want to fetch images from the web, then you'll need to build some kind of grabber. Maybe CsQuery project can help you in that..
https://github.com/jamietre/CsQuery