New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Compress Stream

  • Show/Hide Border
  • Table Properties
  • Delete Table
  • Row
    • Insert Row Above
    • Insert Row Below
    • Delete Row
  • Column
    • Insert Column to the Left
    • Insert Column to the Right
    • Delete Column
  • Cell
    • Merge Cells Horizontally
    • Merge Cells Vertically
    • Split Cell Horizontally
    • Split Cell Vertically
    • Delete Cell
  • Cell Properties
  • Table Properties
  • Properties...
  • Image Map Editor
  • Properties...
  • OpenLink
  • Remove Link
  • Insert Select
  • Cut
  • Copy
  • Paste
  • Paste from Word
  • Paste Plain Text
  • Paste As Html
  • Paste Html
Uncompressed size: 1650


Compressed size: 0
  • Demo Configurator
Configure Compression Level
Stored

With RadZibLibrary you can easily compress and decompress streams with the preferred compression level. Telerik’s ZIP Framework for ASP.NET AJAX provides a class that are designed to compress and decompress stream - CompressedStream. With the stream compression functionality you can compress uploaded files into your database and decrease the saved data size. When the file is needed, you can decompress it and restore its original state

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • styles.css
  • BasicTools.xml
<%@ Page Title="" Language="C#" 
    AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="ZipLibrary_Examples_ReadDataFromZipFile_DefaultCS" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-wide">
        <telerik:RadAjaxPanel runat="server" Width="794px">
            <telerik:RadEditor RenderMode="Lightweight" Height="200px" Width="794px" EditModes="Html" 
                ID="RadEditor1" runat="server" ToolsFile="~/ZipLibrary/Examples/CompressStream/BasicTools.xml">
            </telerik:RadEditor>
            <b>
                <asp:Label runat="server" ID="Label1"></asp:Label></b>
            <telerik:RadButton RenderMode="Lightweight" runat="server" Text="Compress" OnClick="Button1_Click"></telerik:RadButton>
            <br />
            <br />
            <asp:TextBox runat="server" Width="794px" Height="200px" TextMode="MultiLine" ID="TextBox2"></asp:TextBox><br />
            <b>
                <asp:Label runat="server" ID="Label2"></asp:Label></b>
        </telerik:RadAjaxPanel>
    </div>
    <qsf:ConfiguratorPanel ID="ConfiguratorPanel1" runat="server" Title="Demo Configurator">
        <Views>
            <qsf:View>
                <fieldset>
                    <legend>Configure Compression Level</legend>
                    <qsf:DropDownList runat="server" ID="DropDownList1"></qsf:DropDownList>
                </fieldset>
            </qsf:View>
        </Views>
    </qsf:ConfiguratorPanel>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance