Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,

I have an ASP.NET C# web application. I have a page to import candidates using excel sheet, in this, I have a column to upload candidate image which is a string URL(image is on the client machine).

What I have tried:

How can I convert the string URL which is in the ExcelSheet and saves that image on to the server?

Can anyone please help me.

Thanks
Posted
Updated 22-Dec-18 22:18pm

1 solution

You can't: you have no direct access to the client file system, and cannot fetch files from it unless the client directly initiates the transfer. Unless the image is embedded in the spreadsheet, you can't touch it.

Think about it: if you could do that for an image, malicious sites could do that for all your files without you even noticing. Is that what you want to happen to your system?
 
Share this answer
 

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