private void EscribeServidor2(StringBuilder registros) { string strFileName = "ListaNegra.txt"; string _tipoArchivoDir = ""; _tipoArchivoDir = "PLD"; string strType = "txt"; string directorio = Repositorio + _tipoArchivoDir + @"\"; System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding(); byte[] hfc = (byte[])encoding.GetBytes(registros.ToString()); IwsDocumentHandlingClient proxy = new IwsDocumentHandlingClient(); RemoteFileInfoRequest request = new RemoteFileInfoRequest(); UploadFileResponse response = new UploadFileResponse(); long length = (long)hfc.Length; byte[] buffer2 = hfc; request.data = buffer2; request.FileName = strFileName; request.Length = length; request.strServerPath = directorio; response = proxy.UploadFile(request); }
private void EscribeServidor2(StringBuilder registros) { string strFileName = "ListaNegra.txt"; string _tipoArchivoDir = ""; _tipoArchivoDir = "PLD"; string strType = "txt"; string directorio = Repositorio + _tipoArchivoDir + @"\"; System.Text.UTF8Encoding encoding=new System.Text.UTF8Encoding(); byte[] hfc =(byte[]) encoding.GetBytes(registros.ToString()); IwsDocumentHandlingClient proxy = new IwsDocumentHandlingClient(); RemoteFileInfoRequest request = new RemoteFileInfoRequest(); UploadFileResponse response = new UploadFileResponse(); long length = (long)hfc.Length; byte[] buffer2 = hfc; request.data = buffer2; request.FileName = strFileName; request.Length = length; request.strServerPath = directorio; response = proxy.UploadFile(request); }