public void SendFileToJMS(string decryptedFile, string fileName, string key) { ReceptionEndpointClient client = new ReceptionEndpointClient(); //Encoding.ASCII.GetBytes(decryptedFile); byte[] bytes = Encoding.UTF8.GetBytes(decryptedFile); //BinaryReader binaryReader = new BinaryReader(bytes.); //Read(bytes, ) // string text = ; //string text = decryptedFile.Replace("") string responseJMS = client.ReceptionOperation(bytes, key, fileName); System.Diagnostics.Debug.WriteLine(responseJMS); }