.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

FAQ: Does .NET have any compression/zipping capabilities?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :.NET Framework

Does .NET have any compression/zipping capabilities?

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

View Complete Post

More Related Resource Links

Inside Windows 7: MultiTouch Capabilities in Windows 7


This is Part 3 of a multipart article series on Windows 7. Part 3 covers the Windows 7 multitouch capabilities.

Yochay Kiriaty

MSDN Magazine August 2009

SQL Server 2005: Fuzzy Lookups and Groupings Provide Powerful Data Cleansing Capabilities


SQL Server 2005 offers a completely redesigned SQL Server Integration Services engine, formerly known as Data Transformation Services. It includes many new features such as built-in support for Fuzzy Lookups and Fuzzy Groupings, which help you build powerful data-cleansing solutions. This article provides an overview of fuzzy searching techniques and a dissection of the underlying fuzzy search technology implemented in SQL Server 2005.

Jay Nathan

MSDN Magazine September 2005

The ASP Column: Determining Browser Capabilities in ASP.NET


Web applications are different from applications that run in homogenous environments because they send their output to all kinds of platforms and Web browsers. Some browsers support client-side scripting, some support XHTML, and still others have limited screen real estate.

George Shepherd

MSDN Magazine January 2005

Passport Secure Sign-In: Provide Your Users with Secure Authentication Capabilities Using Microsoft


Secure sign-in, a new feature in version 2.0 of the .NET Passport single sign-in and profile service, is a functionality that will be especially useful for sites containing confidential information or anywhere security is a primary concern. Such sites include banks, medical sites, and so on. Secure sign-in is as safe as any SSL-based Web site login used today and provides a way to virtually eliminate vulnerability to replay and dictionary attacks.This article explains secure sign-in and demonstrates how you can implement this feature with very little effort in either ASP using the Passport.Manager COM object or in ASP.NET using the .NET class PassportIdentity.

Michael Kogotkov-Lisin

MSDN Magazine September 2002

Video: Capabilities and Elements in Sandboxed Solutions in SharePoint 2010

This demonstration illustrates some of the allowed and disallowed operations in sandboxed Web Parts. (Length: 8:46)

Table-Layout attribute and MSDN claims re capabilities

I am developing a CompositeDataBoundControl that is basically a 'table' inside a 'div', in order to limit the size of the Control and use the scrolling capabilities of the 'div' tag ('RenderBeginTag("div"). So essentially the control is; <div style="overflow:auto;width:400px;height:300px;"> <table style="table-layout:fixed;">   My problem/question has to do with the capabilities claimed by MSDN of the CSS Attribute 'Table-Layout'. See; http://msdn.microsoft.com/en-us/library/ms531161(v=VS.85).aspx   One of the essential goals of my Control is to limit the width and height of 'Cells' (<td>'s) in the table and let the content be clipped.  MSDN says one can do this by setting the 'width' property of each Cell in the first row of the table. I have no problem with this and it works just fine.   My problem is that MSDN also claims that one can set the height property of each row and that any wrapping of text is 'clipped' and the row height is maintained. See Remarks section; "If the row height is specified, wrapped text is clipped when it exceeds the set height".  I can't make this happen. Any time whitespace occurs in the cell content, and the content exceeds the cell width, the content is wrapped to a new line and the row/cell height is adjusted automatically to fit all the content. In other words it appears that MSD

Browser Capabilities

The default .browser files are very limited. There are some popular 3rd party updates such as http://owenbrady.net/browsercaps/ available. But I was wondering if MSFT has a supported method of providing updates browser files. Specifically, it is critical to my application that Request.Browser.Crawler be accurately populated.

IIS 6.0 Gzip Compression and Sharepoint

  I have enabled GZIP compression on my WCM site per this article: http://blogs.technet.com/wbaer/archive/2008/01/30/http-compression-internet-information-services-6-0-and-sharepoint-products-and-technologies.aspx. This worked for .css and .js sitting in the 12 hive and I can see using fiddler that these files are being compressed.  However, .css and .js that are sitting in the content database are not compressed (e.g. within the Style Library).  Is this a known limitation, or is there a way I can get around this? My setup is Win2k3, IIS6, MOSS 2007 SP2, SQL 2005.  I have 1 SQL and 1 WFE server. -Ron  

System.IO.Compression not as good as compressed folder

I'm getting much better compression when I make a compressed folder (Windows XP) than I am using DeflateStream or GZipStream.  I thought these were the same algorithms used in PKZIP and for compressing folders.  Why such bad compression? DeflateStream: 3544Kb -> 1261Kb GZipStream: 3544Kb -> 1261Kb Windows XP: 3544Kb -> 804Kb So how can I get the same compression ratio as Windows XP? Thanks, Jeremy

Best Way to Enable HTTP Compression

I'm trying to improve the performance of my site using HTTP compression (GZIP or Default) but I'm having trouble finding the information I'm after.My requirements are that I can't use IIS direct (my site uses shared hosting) and I don't want to use a 3rd party tool (my understanding is that it's not necessary). I'd prefer a web.config solution, if there is one.I've been searching for a while. Most solutions I found are very old, some require direct access to IIS, and others require 3rd party tools. I found one that looked promising at http://www.stardeveloper.com/articles/display.html?article=2007110401&page=1, but while it worked under Visual Studio it complains about app.Context.CurrentHandler being null when deployed on my site.As I understand it, there's very little reason not to use compression but I'm having trouble finding current information.Anyone else having better luck with this?Thanks.

HTTP Handler IIS Compression

I am using a IHttpHandler to write a PDF file to the output stream in IIS 7 with ASP.NET 4 RC as follows.context.Response.WriteFile(pdfFilePath) context.Response.Flush() I am aware that IIS 7 offers both static and dynamic compression which is configured using the urlCompression and httpCompression elements in their respective config files. This works well except for with the output of IHttpHandlers. It seems their output is not being compressed even though I have enabled dynamic compression and added the IHttpHandler's mime-types (application/pdf in this case) to the dynamicTypes section.Why are my IHttpHandler's output not being compressed by IIS? I'm aware I could do this manually in the handler but I'd rather let IIS do it.Thanks,Eric

Can't implement Search capabilities in my C# application using Access 2003



I'm using visual c# 2005 express edition, i tried to implement full text search capabilities in my application using an Access 2003 database (of 1 table only) but i couldn't. Could someone tell me how to go about, with an example maybe? 

Thanks in advance.

Express 2008 R2 w/ Advanced Svcs - what BIDS capabilities are provided?


I have BIDS on my desktop as the result of a Visual Studio 2005 Professional installation.  Neither the VS 2008 nor the VS 2010 installs included an update to the BIDS dev. environment, so I'm trying to find out if there's been any update to BIDS and what the SQL Express with Advanced Services brings to the table.

Microsoft's product pages say that it includes BIDS, but is it the VS 2005 version or something newer?  See the Development Tools table at this link:      http://msdn.microsoft.com/en-us/library/cc645993.aspx


Resized image compression difference



I'm developing an image storage service and for that purpose, I'm resizing the uploaded images in order to get thumbnail and tiny-sized versions of the source image. This works just fine. However when looking into the actual files, I realized that the resized images "weight" actually more on the disk than the source. Here's an example:

- Source image, 1024x768, JPEG, 94.17 KB
- Medium sized image, resized by my code: 500x375, JPEG, 465.47 KB
- Small sized image, resized by my code: 150x112, JPEG, 47.05 KB 

Something is clearly wrong here. The medium sized image is twice smaller in resolution, but weights more than 4 times than the source image.

Here's an excerpt of the code that actually resizes images:

private void ResizeImage(string originalFile, string NewFile, int NewWidth, int MaxHeight, bool OnlyResizeIfWider, string directory)
            System.Drawing.Image FullsizeImage = System.Drawing.Image.FromFile(originalFile);

            // Prevent using images internal thumbnail

            if (OnlyResizeIfWider)
                if (FullsizeImage.Width <= Ne

Multi Select List and Filter Capabilities



I have a custom list created and one on the columns is a Choice list with the multi select option.  I need to be able to filter by the data based on one selection from that choice list.  For example, this choice coloumn is for a list of job role.  I need users to be able to select their role so to filter to what they need to see in other coloumns in that same custome list.  I have tried adding the sharepoint filter above my list however, that column is not an option to select on due to the multi select option. Is there an easy way to filter on that column.

Resizing Images using GetThumbnailImage, Bad Compression Rate



 I am using the following code to resize an image from original size


    protected void resizeImage(String fileName, String imagePath, int resizeWidth, int resizeHeight)
        // Load Original Image
        System.Drawing.Image originalImage;
        originalImage = System.Drawing.Image.FromFile(strImageFolder + "original\\" + fileName);

        // Get Original Image Dimensions
        int originalHeight = originalImage.Height;
        int originalWidth = originalImage.Width;

        // Set new Image dimensions
        int newWidth = resizeWidth;
        int newHeight = (newWidth * originalHeight) / originalWidth;

        // Creates new resized image
        System.Drawing.Image resizedImage;
        resizedImage = originalImage.GetThumbnailImage(newWidth, newHeight, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);
        resizedImage.Save(imagePath + fileName);
Now th
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend