-5

I need to upload a file to the server. But I have a folder where my file is located, and this file will be there all the time.

Example: c:\myfolder\myfile.bmp

The file will be modified and I have to upload to the server, but without using a control like fileUpload.

I have the publication of file.

How can I upload this file, I´m using ASP.NET aspx

thanks

BanksySan
  • 25,929
  • 29
  • 105
  • 202
Fredo
  • 5
  • 2
  • 1
    It's unclear what you're asking. – Dan Wilson Dec 30 '16 at 18:24
  • this question can help you out here : http://stackoverflow.com/questions/41083978/fileupload-control-in-visual-studio-and-save-the-image-to-mysql-database – Masoud Andalibi Dec 30 '16 at 19:01
  • The client CPUs will always have a directory: k: \\ adn \\ img.bmp And when doing a process in my web application, I have to load the path of the machine k: \\ adn \\ img.bmp that img.bmp to my server. But I have to do it in automatic without the user select the file or anything, for that, I already know where the file is located on the client machine. How can i do that from c # – Fredo Dec 30 '16 at 19:32
  • I do not know if I explain. – Fredo Dec 30 '16 at 19:33

1 Answers1

0

EveryBody I resolved my aks with this.

eWebClient wc = new WebClient();
            byte[] bytes = wc.DownloadData("K://BMP//EKT173026_firmaElectronicaClte.bmp");
            MemoryStream ms = new MemoryStream(bytes);
            System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
img.Save(strFolder + "\EKT173026_firmaElectronicaClte.bmp");

Since my server, I only have the url file and I had to upload the file to the server

Fredo
  • 5
  • 2