static void Main(string[] args) { var bytes = File.ReadAllBytes(@"c:\out.mp4"); string base64Str = Convert.ToBase64String(bytes); DRPCClient client = new DRPCClient("localhost", 3772); string result = client.execute("video", base64Str); File.WriteAllBytes(@"c:\outmodified.mp4", Convert.FromBase64String(result)); }
public static void Main(string[] args) { DRPCClient client = new DRPCClient("host", 3772); string result = client.execute("simpledrpc", "hello word"); Console.WriteLine(result); Console.WriteLine("Please input a word and press enter, if you want quit it, press enter only!"); do { string input = Console.ReadLine(); if (string.IsNullOrEmpty(input)) { break; } Console.WriteLine(client.execute("simpledrpc", input)); }while (true); }