File creation using Invoke Method

uiautomation

#1

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

Hi @Aditya123,

you can use Assign activity for both statement.

Best
Avi


#3

Hi @Avi7

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

Thanks
Vinay