Infrastructure (Server, Network, Database)

cancel
Showing results for 
Search instead for 
Did you mean: 

How does write Files to Azure Server from Another Azure Server Using C#

Iswarya.N
New Member

How does write Files to Azure Server from Another Azure Server Using C#

I had two Azure servers (Web Apps). I had to write code to upload an image file to the same server for my Azure certification projects.

Below is the code :

  byte[] bytes = Convert.FromBase64String(_base64String);
  string path = Server.MapPath("../../assets/Upload/");

  FileInfo file = new FileInfo(path);
  file.Directory.Create();

  File.WriteAllBytes(path + "Test.jpg"), 

This code is perfectly working for the same server. How should I write the same file on another server?

Now I need to write that file from Azure Server A to Azure Server B.

Tags (2)
How does write Files to Azure Server from Another Azure Server Using C#