Delete images in TempImageFolder

Thread is closed for posting
4 posts, 0 answers
  1. Jun Ting
    Jun Ting avatar
    26 posts
    Member since:
    Nov 2007

    Posted 19 Apr 2010 Link to this post

    Hi,

    How to automatically delete the images in TempImageFolder? Is there any setting for it?

    Here is the code that i used. But the images still keep in the TempImageFolder after few days.
      <telerik:RadChart ID="RadChart_Overall" runat="server" Width="450px"    
                IntelligentLabelsEnabled="True" DefaultType="Pie" AutoLayout="True" AutoTextWrap="True" Height="350px" TempImagesFolder="~/images/articles" UseSession="False" OnItemDataBound="RadChart_Overall_ItemDataBound" SeriesPalette="MyPalette">  
                 <Series> 
                    <telerik:ChartSeries Name="Series" Type="Pie" DataYColumn="cnt">  
                      <appearance centerxoffset="-50" barwidthpercent="5">  
                            <textappearance autotextwrap="True" textproperties-color="Black">  
                            </textappearance>   
                        </appearance> 
                    </telerik:ChartSeries> 
                </Series> 
                  <CustomPalettes> 
                                    <telerik:Palette Name="MyPalette">  
                                        <Items> 
                                         <telerik:PaletteItem MainColor="DarkGreen" SecondColor="DarkGreen" /> 
                                           <telerik:PaletteItem MainColor="LightBlue" SecondColor="LightBlue" /> 
                                            <telerik:PaletteItem MainColor="Crimson"  SecondColor="Crimson" /> 
                                            <telerik:PaletteItem MainColor="DarkOrange" SecondColor="DarkOrange"  /> 
                                             <telerik:PaletteItem MainColor="MediumPurple" SecondColor="MediumPurple" /> 
                                              <telerik:PaletteItem MainColor="Yellow" SecondColor="Yellow" /> 
                                              <telerik:PaletteItem MainColor="PeachPuff" SecondColor="PeachPuff" /> 
                                              <telerik:PaletteItem MainColor="Brown" SecondColor="white" /> 
                                                
                                        </Items> 
                                    </telerik:Palette> 
                                </CustomPalettes> 
                                    <charttitle> 
                    <textblock> 
                        <appearance textproperties-color="Black" textproperties-font="Arial, 10pt,style=bold">  
                        </appearance> 
                    </textblock> 
                    <appearance position-alignedposition="TopLeft" Dimensions-Width="450px">  
                    </appearance> 
                </charttitle> 
                <PlotArea> 
            <xaxis> 
                   <appearance color="76, 255, 255, 255" majortick-color="179, 255, 255, 255">  
                       <majorgridlines color="179, 255, 255, 255" width="2" /> 
                       <textappearance textproperties-color="Black">  
                       </textappearance> 
                   </appearance> 
                   <axislabel> 
                       <appearance dimensions-paddings="1px, 1px, 10%, 1px">  
                       </appearance> 
                       <textblock> 
                           <appearance textproperties-color="Black">  
                           </appearance> 
                       </textblock> 
                   </axislabel> 
               </xaxis> 
                 <Appearance Border-Width="0" Dimensions-AutoSize="true">  
                <fillstyle maincolor="" secondcolor="Transparent">  
                </fillstyle> 
          
                 
                 </Appearance> 
           </PlotArea> 
             
            <legend visible="true">  
                  <appearance visible="true"   
                        location="InsidePlotArea" dimensions-margins="2px, 2px, 2px, 3px"   
                        position-alignedposition="Right" position-auto="True" > 
                       <itemtextappearance autotextwrap="True" textproperties-color="Black"></itemtextappearance> 
                        <fillstyle maincolor="37, 255, 255, 255">  
                        </fillstyle> 
                        <border color="White" /> 
                    </appearance> 
                    <textblock><appearance autotextwrap="True" position-alignedposition="Top"   
                        textproperties-color="220, 158, 119">  
                    </appearance></textblock>  
                </legend> 
                  
                </telerik:RadChart> 


  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 22 Apr 2010 Link to this post

    Hello Jun Ting,

    Each image in that folder is automatically deleted the first time it is requested by the HTTP handler. Once it is read for the first time, it is placed in the Cache and then it is deleted from the file storage.

    Sincerely yours,
    Vladimir Milev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Jun Ting
    Jun Ting avatar
    26 posts
    Member since:
    Nov 2007

    Posted 01 Jun 2010 Link to this post

    Hi,

    The images still not deleted. Is there any setting need to do?
  4. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 03 Jun 2010 Link to this post

    Hello Jun Ting,

    One reason they might not get deleted is if there are no sufficient permissions.

    Another case - a bit more complicated may be the following:
    1) The chart control gets loaded and rendered. (thus generating the image file)
    2) However, the browser has turn off the option to load images, or some plugin is blocking the download.
    3) As a consequence from (2) the HTTP Handler never loads up and deletes the image from disk.

    If this becomes a problem I suggest using the Session to store images.

    Kind regards,
    Vladimir Milev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top