Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / DownloadHelper Class / SendFileDataToClient Method / SendFileDataToClient(HttpContext,String,String) Method
Http context to get the request details and the response object for sending the data
The absolute path to the file to send to the client
The file name to identify with the file data when sending to the client
In This Topic
    SendFileDataToClient(HttpContext,String,String) Method
    In This Topic
    Sends file data for the file to the http client.
    Syntax
    public static void SendFileDataToClient( 
       HttpContext context,
       string filePath,
       string saveAsName
    )

    Parameters

    context
    Http context to get the request details and the response object for sending the data
    filePath
    The absolute path to the file to send to the client
    saveAsName
    The file name to identify with the file data when sending to the client
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also