I wrote an aspx page that creates a .pdf file upon request and transfers the
file to the client for viewing (via an Adobe Acrobat plug-in). Afterwards,
the file is no longer needed and should be deleted from the server. Here is
a code snippet as an example:
Response.Conten tType = "applicatio n/pdf";
Response.Clear( );
Response.Transm itFile(filename );
Response.Flush( );
//Response.End();
System.IO.File. Delete(filename );
Could someone suggest a better way of getting the dynamic file to the client
while maintaining a clean server?
file to the client for viewing (via an Adobe Acrobat plug-in). Afterwards,
the file is no longer needed and should be deleted from the server. Here is
a code snippet as an example:
Response.Conten tType = "applicatio n/pdf";
Response.Clear( );
Response.Transm itFile(filename );
Response.Flush( );
//Response.End();
System.IO.File. Delete(filename );
Could someone suggest a better way of getting the dynamic file to the client
while maintaining a clean server?
Comment