File creation using Invoke Method

byte response = new System.Net.WebClient().DownloadData(url);
byte file = System.IO.File.ReadAllBytes(fileName);

The above two methods can create a byte array, need to create physical file using the byte. How to invoke
Syntax: File.WriteAllBytes(string path, byte bytes)
eg File.WriteAllBytes(filePath, response)

2 Likes

Hi @Aditya123,

you can use Assign activity for both statement.

Best
Avi

1 Like

Hi @Avi7

@Aditya123 is looking forward to invoke File.WriteAllBytes(filePath, response).

Thanks
Vinay