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 HuffmanCompress(FileUploadAPI objFile, string id) { string[] FileName1 = objFile.Files.FileName.Split("."); HuffCompress.Comprimir(_environment.WebRootPath + "\\UploadHuffman\\" + objFile.Files.FileName, _environment.WebRootPath + "\\UploadHuffman\\" + id + ".huff", FileName1[0], _environment.WebRootPath + "\\UploadHuffman\\" + "Compresiones.txt"); }
public void ComprimirArchivos(IFormFile objFile, string id) { string[] FileName1 = objFile.FileName.Split("."); ComprimirHuffman.Comprimir(_environment.ContentRootPath + "\\ArchivosCompresos\\" + objFile.FileName, _environment.ContentRootPath + "\\ArchivosCompresos\\" + id + ".huff", FileName1[0], _environment.ContentRootPath + "\\ArchivosCompresos\\" + "Compresiones.txt"); }