<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks for the quick reply,<br><br>When you run this function? after each requests ? but if so, the client is able to read the image before you delete it ?<br><br>best regards,<br><br>Valerio<br><br><br>--- <b>Gio 23/10/08, Venkat Rao Tammineni <i>&lt;vtammineni@roulacglobal.com&gt;</i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Venkat Rao Tammineni &lt;vtammineni@roulacglobal.com&gt;<br>Oggetto: RE: [mapserver-users] disk space<br>A: valerio.vianello@yahoo.it, "'mapserver'" &lt;mapserver-users@lists.osgeo.org&gt;<br>Data: Giovedì 23 ottobre 2008, 13:05<br><br><div id="yiv1232889979">


 
 

<style>
<!--
#yiv1232889979  
 _filtered #yiv1232889979 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv1232889979 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv1232889979  
#yiv1232889979 p.MsoNormal, #yiv1232889979 li.MsoNormal, #yiv1232889979 div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv1232889979 a:link, #yiv1232889979 span.MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv1232889979 a:visited, #yiv1232889979 span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv1232889979 span.EmailStyle17
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv1232889979 .MsoChpDefault
        {}
 _filtered #yiv1232889979 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv1232889979 div.Section1
        {}
-->
</style>

<div class="Section1">

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Hi,</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">&nbsp; Why don’t you write method &nbsp;for deleting png .mapserver will
take care about creating an image.I have&nbsp; C# code.</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">The below code will delete all the files form OutputDIR.</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">I hope it helps you. Or At least you can get some idea about
your task.</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Thanks and Regards</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Venkat.</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">public</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: blue;">void</span> Deleteimages()</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">{</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">try</span></span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">foreach</span>
(<span style="color: blue;">string</span> f <span style="color: blue;">in</span>
System.IO.<span style="color: teal;">Directory</span>.GetFiles(OutputDir))</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.IO.<span style="color: teal;">File</span>.Delete(f);</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;}</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">catch</span> (<span style="color: teal;">Exception</span> exp)</span></p> 

<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { }</span></p> 

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">}</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"> &nbsp;</span></p> 

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">From:</span></b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>valerio
vianello<br>
<b>Sent:</b> Thursday, October 23, 2008 4:25 PM<br>
<b>To:</b> mapserver<br>
<b>Subject:</b> [mapserver-users] disk space</span></p> 

</div>

<p class="MsoNormal"> &nbsp;</p> 

<table class="MsoNormalTable" border="0" cellpadding="0" cellspacing="0">
 <tbody><tr>
  <td style="padding: 0in;" valign="top">
  <p class="MsoNormal" style="margin-bottom: 12pt;">Dear all,<br>
  <br>
  I have a demo where I'm using mapserver cgi interface. I'm using the browse
  mode so each time mapserver receive a request, it creates a temporary png on
  the server filesystem. <br>
  <br>
  Do you know how and when i can delete those temporary image since they are
  used only one time ?&nbsp; <br>
  <br>
  An attacker could easily&nbsp; fill all the server HD&nbsp; locking all the
  system.<br>
  <br>
  Thanks<br>
  <br>
  Valerio</p> 
  </td>
 </tr>
</tbody></table>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;"> &nbsp;</span></p> 

<div class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;">

<hr align="center" size="1" width="100%">

</span></div>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Scopri
il <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F">Blog
di Yahoo! Mail</a>: trucchi, novità, consigli... e scrivi la tua opinione!</span><span style="font-size: 10pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;"></span></p> 

</div>

 

</div></blockquote></td></tr></table><br>



      <hr size=1><font face="Arial" size="2">Scopri il <a href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F"> Blog di Yahoo! Mail</a>: trucchi, novità, consigli... e scrivi la tua opinione!</font>