There are many examples of compressing files in VB.Net. So many of these examples are using third party libraries which is just not neccesarry. People were saying that files and archives exceeding 4Gb couldn't be used... I hate restrictions and decided to "Stick it to Microsoft" To get a better understanding of Zip files and their contents I set about writing my own Zip file generator from the ground up (Still using Phil Katz's Zip algorythem). Eventually I successfully built my own Zip and ZIP64 archives byte by byte. I then looked at my work and thought, now I have …

Member Avatar
Member Avatar
+1 forum 3

Hi All, How can we enable HTML code compression in .Net? Is there anything we need to do in web.config or external tool is needed? Thanks!

Member Avatar
Member Avatar
+0 forum 4

hello. can anybody please help me. i am a begineer to php. i want to change mp3 file bitrate . like from 128 kbps to 320 kbps, 256 kbps, 64 kbps,and 48 kbps. anybody help me .. reply more appreciated........

Member Avatar
Member Avatar
+0 forum 4

Hi, I'll quickly explain what i am trying to do before telling the problem i am facing. **Requirement:** 1. Store the contents of a file into an object. 2. Send the object through HTTP socket to another client server. 3. Have the server fetch the file contents from the object. 4. Compress it. 5. Store the compressed file's content back into the object. 6. Send the new object back to the server. 7. Server fetched the compressed file contents from the recieved object and writes to a zip file **Problem:** The final output file [the zip file] is corrupted. On …

Member Avatar
Member Avatar
+0 forum 3

I am in a small doubt of how to proceed to the next stage. 1. I have used im2col which basically turned gray-scale image into vector. 2. I have used the function vector quantization lbg algorithm which gave the VQ codebook as the output. I understand that the image I have used to create the codebook is the training image. So here's my doubt: **How and where am I going to provide the test image in order to test the codebook created from the training image? ** What are your suggestions?

Member Avatar
+0 forum 0

this gives syntax error, why would it give ? `[index, each for index,each in enumerate(names)]`

Member Avatar
Member Avatar
+0 forum 8

Hello everyone, I am working on one program that generates a lot of data...eventually it can be in GB range. And the way I am doing it now is just by writing to ascii file everything time... like this: ofstream flowC("outputfile.out"); // declared at the start flowC << prevsid << ", " << threadid << endl; // inside working block - repeats many many times However, this is not very efficient. First because I am writing ascii and because I am writing to dick every single time. To improve this.. I want to write 2nd line above to a buffer …

Member Avatar
Member Avatar
+0 forum 4

I want to add a new feature in my present image upload script and that is automatic compression of images just like TinyPng.Basically i want a code snippet that detect 24bit PNG file and convert it to 8bit png file with full support for transparency and that also strip any metadata present Any php based solution would do ,all i found till now use command line and i don't know how to implement these in php. I need a solution in php please Thanks for the guidance

Member Avatar
Member Avatar
+0 forum 5

Hi, I want to use a compression alogorithm to compress files and implemented in my interface,I have browsed the net and I have found many like Huffman,is it the best choice and thanks

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm new to python and have a requirement to decompress various NRV2B compressed files. I have the python functions for performing this decompression, however I am unsure how to get it working. I have tried making this a module, importing it and then feeding my compressed files as a parameter (recordDataEncoded). I think I am going about this in the wrong way. So my question is, how would one implement this? [CODE] def getBit(pos, recordDataEncoded, fourBytes, count): #Get the bit at position count. If count == 0, reinitialize count and move to #next decompression. if count == 0: count …

Member Avatar
Member Avatar
+0 forum 1

I understand that data on computers can be compressed (I see it all the time with zip files and jpegs) but I was wondering just how compression works. Thinking it through, if you data is represented by 1s and 0s then it can be corresponded 1 to 1 with a binary number (albeit a large one). The idea behind compression is that some smaller number can represent the same data, but how is this possible since that new number must represent something else? I suppose if you know in advance that this number is a compressed version of another number …

Member Avatar
Member Avatar
+0 forum 9

Up until now, I have used "unlimited" shared server space and have been able to serve out whatever MP4, .OGV, and WEBM files Miro video converter spat out without a problem. Now, I have invested in a virtual dedicated sever with better support/higher uptime/better transfer rate, and have to be more mindful of bandwidth. That being said, a three and a half minute .ogv file can turn out to be over thirty megs. This is no good for someone who wants to serve out lots of HTML5 video to lots of people. Are there any applications that offer more fine-grained …

Member Avatar
+0 forum 0

Hi, i was working on an application which is quite similar to winRAR or other compression software. at the moment i facing prob with the progress bar. my idea was that whenever i click on the button to compress the progress bar will load and ended when the compression complete. However i first time using progress bar so i not too sure how i could sychronise the compression time with the progress bar. thanks in advance:*

Member Avatar
Member Avatar
+0 forum 1

I've been working on compression and decompression between Java and C#, using deflate and inflate. Everything else I tried produced varying results which were never able to be compressed/decompressed flawlessly between Java and C#. I tested out using DeflateStream (C#) to compress data, and InflaterInputStream (Java) to decompress the data, and vice versa, which worked fine in my test. However, when implementing the compression/decompression streams into the software I need it for, I get the following error in the Java app: [CODE]java.util.zip.ZipException: unknown compression method at java.util.zip.InflaterInputStream.read(Unknown Source)[/CODE] Can anyone help me out? Or are there any other ways to …

Member Avatar
Member Avatar
+0 forum 1

Hello, i wanna ask about the suitable compression method for a text file that has a 50*50 input message and has a source alphabet (0,1,2,3), is it extended huffmann or LZW or Arithmatic or shall i mix between 2 of them ? regards

Member Avatar
Member Avatar
+0 forum 1

Hi! I am currently using LZW algorithm for compressing files but it cannot compress multimedia. What possible process am I missing? Is there any method be done before entering the algorithm? Enlighten me please. Any help will do. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

0 down vote favorite hi, I had a problem with adding reference in my C application. I am unable to add linker reference to "libiconv" in my data compresser project.I have download "libiconv" library but confuse in adding reference which show error in compiling.I'm using Dev C++ for developing my compression apps. here is the compile log: [CODE]Executing make... make.exe -f "C:\Dev-Cpp\Examples\eottest\Makefile.win" all gcc.exe eot.o libeot.o properties.o -o "Project1.exe" -L"C:/Dev-Cpp/lib" libeot.o(.text+0x19):libeot.c: undefined reference to `libiconv_open' libeot.o(.text+0x36):libeot.c: undefined reference to `libiconv_close' libeot.o(.text+0x67):libeot.c: undefined reference to `libiconv' collect2: ld returned 1 exit status`[/CODE] i have downloaded 'libiconv' library from ftp.gnu.org/gnu/libiconv/libiconv-1.13.1.tar.gz ......after extracting …

Member Avatar
Member Avatar
+0 forum 1

what are your thoughts and is it original? [CODE]using ratios to retrieve relevant pixel data (note would be good for greyscale) 255,255,255 ... 255+255+255=765 ... 765333 = 765 / 3 = 255 ... program know it means 255,255,255 123,245,32 ... 123+245+32=400 ... 400-3.25,1.63.12.5(<--- problem) |400-(3.25)-(1.63)-(12.5) = 400 / 3.25=123.08 -- 400 / 1.63=245.4 -- 400 / 12.5=32 125,125,125 ... 125+125+125=375 ... 375-3(the first three characters are the sum of the rgb values and subsequent values are the rgb respective ratios within the sum)... 0,125,125 ... 0+125+125=250 ... 250-22 ... 250/0 = 0 -- 250/2 = 125 250/() = previous value …

Member Avatar
Member Avatar
+0 forum 1

i had an idea to make my own file formats but... have nearly zero coding experience. the image is just text which a program would parse and receive relevant pixel data from it(like xml based stuff). i wrote up some plan for the file: [CODE] `meta data [(title)test image] [(date)1,1,2010] [(gps)25.691053,-80.306947] [(taken by)kadak powerful cybershot d890] [(resolution)7,2] [(compression dictionary)34.t,a.67,c.25,d.23,] `example [(resolution)640,480/vga] will use resolution to detect where the line ends `a peroid is used to seperate sub-pixels and a comma is used to seperate pixels `an uncompressed string of characters @ 143 letters [255.255.255, 234.123.153, , 1.1.1, 255.0.0, 0.255.0, 0.0.255, …

Member Avatar
+0 forum 0

BWT -> MTF -> RLE -> OUPTUT This was the basic scheme of BWT by Burrows and Wheeler. Sir, please have a look at the example I have taken to solve using this schemeā€¦. STEP 1. X is the input. Im taking input string as ABDACA After applying BWT: (arranging cyclic permutations) (lexicographic order) A B D A C A A A B D A C B D A C A A A B D A C A D A C A A B A C A A B D A C A A B D B D A C …

Member Avatar
+0 forum 0

Hi all, I'm trying to write the Hufmann code to encode a given file & give me the compression ratio. but when I run this programme, I'm getting segmentation fault. Can you please help me with correcting it ? [CODE] /*************************/ /*************************/ // HUFMANN.C /*************************/ /*************************/ #include<stdio.h> #include<stdlib.h> #include<input.h> #define MAXBITS 32 #define MAXNODES 512 #define MAXSYMBS 256 int hmin(void); void hinsert(int,int); struct codetype{ int bits[MAXBITS]; int startpos; }; struct nodetype{ int freq; int father; int isleft; }; typedef struct hlist{ int pos; int hfreq; struct hlist *next; }hnode; hnode *hroot=NULL,*traversal; extern struct list a[256]; extern int n; int hmin() …

Member Avatar
Member Avatar
+0 forum 1

I've been using WinRAR for as long as I can remember, because when I checked up on it at the time it was the best tool available as far as compression was concerned. Is this still the case? Is there now an alternative that can squash files into even smaller states than .rar files can? I'm personally not bothered about loads of features in these types of programs, all I want to do is make files as small as possible. Any suggestions, or should I just stick with WinRAR for now? Thanks for your time and opinions ;)

Member Avatar
Member Avatar
+0 forum 36

My friend gave me 10,000+ ROM's for Sega, SNES, NES, and GBA. They where all individually zipped. I go fed up trying to unzip them one by one, and decided to write a script to do it for me. It unzipped about 5,000 in under a minute. Python's zipfile module is nice, but it sometimes wont open some zip files. It throws an error saying something like "Corrupt Zip File", but seems to unzip fine with 7Zip. I use 7Zip for all my compression needs now a days, but this script was a learning experience, so I though I would …

Member Avatar
Member Avatar
+0 forum 2

Here is the deal. I am writing a program in assembly that compresses and decompresses text based files. The user should be able to input a text file, and declare the name of what that file should be name when turned into a .drl file (just a random extension for my prog). Right now I am working on reading the file to be compressed. First off I am reading the file one byte at a time and looking for " "(the space character). I want to search the text files for " word" and replace each instance of that word …

Member Avatar
Member Avatar
+0 forum 4

This snippet provides 2 functions to create in memory a gziped archive of a sequence of files and directories, and to extract files from this archive. These functions are similar in effect to the linux commands [icode]tar czf[/icode] and [icode]tar xzf[/icode] but instead of writing an archive file on disk, a python string is used.

Member Avatar
+2 forum 0

Hello, I desperately need a good and fast image encoder and/or compressor for files like jpeg or png. I need this for [B]internet image transfer[/B]. I have to transfer an images from server to client very fast - every second, even milisecond. I'm interested in an encorder that can [I]lower the quality and sets the compression of the image[/I]. I get screen images that are Bitmap, then write them using ImageIO to a ByteArrayOutputStream as [I]jpg[/I], [I]png[/I] or [I]gif[/I] and then send them. The transfer of the image is really slow :(. I don't need so much quality but I …

Member Avatar
+0 forum 0

Hi and I am looking for a compression mechonism that can compress text (just letters and numbers) into binary or all weird symbols. Does anybody know of any good php/mysql codes as I can't get any to work.

Member Avatar
Member Avatar
+0 forum 9

Hi I am just wondering if it would be possible to add compression to this encryption program I have? It will compress the file before it encrypts it for faster encryption time. Thanks for your help.

Member Avatar
Member Avatar
+0 forum 1

The End.