static void Main(string[] args) { Compresion huffman = new Compresion(); //Console.WriteLine("Ingrese texto a comprimir "); huffman.Comprimir("cuento.txt", "compresion.txt", "cuento", "factorescompresion.txt"); huffman.Descomprimir("compresion.txt", "descompresion.txt"); }
public void HuffmanDescompress(FileUploadAPI objFile) { string[] FileName1 = objFile.Files.FileName.Split("."); HuffDesc.Descomprimir(_environment.WebRootPath + "\\UploadHuffman\\" + objFile.Files.FileName, _environment.WebRootPath + "\\UploadHuffman\\" + FileName1[0] + ".txt"); }
public void DescomprimirArchivos(IFormFile objFile) { string[] FileName1 = objFile.FileName.Split("."); ComprimirHuffman.Descomprimir(_environment.ContentRootPath + "\\ArchivosCompresos\\" + objFile.FileName, _environment.ContentRootPath + "\\ArchivosCompresos\\" + FileName1[0] + ".txt"); }