Posted on: 11/15/2012 12:09:04 AM | Views : 360

Hello To All
i have database that i neet save about 100 gig zip files in Database. but i want coded zip files with C# in ASp.net.
i am using below code for encodeing:
public byte[] EncodeFile(byte[] value , int int_BitQuantity) { byte[] temp = new byte[value.Length]; if (int_BitQuantity >= 8) { Array.Copy(value, int_BitQuantity / 8, temp, 0, temp.Length - (int_BitQuantity / 8)); } else { Array.Copy(value, temp, temp.Length); } if (int_BitQuantity % 8 != 0) { for (int i = 0; i < temp.Length; i++) { temp[i] <<= int_BitQuantity % 8; if (i < temp.Length - 1) { temp[i] |= (byte)(temp[i + 1] >> 8 - int_BitQuantity % 8); } } } return temp; }

Go to the complete details ...