<%@ Page Language="C#" Debug="true" %>
<%
    byte[] wfrImg = null;

    try
    {
        using(WFR2025.WfrCommand wfrObj = new WFR2025.WfrCommand(WFR2025.CT.SERVER))
        {
            wfrObj.Open(Server.MapPath(Request.QueryString.Get("File")));
            wfrObj.Import("#1", WFR2025.IT.CSV, Server.MapPath(Request.QueryString.Get("Csv")));
            wfrObj.Create();

            wfrImg = wfrObj.GetWfrImage();
            Response.ContentType = "application/octer-stream";
            Response.BinaryWrite(wfrImg);
        }
    }
    catch(Exception ex)
    {
        Response.ContentType = "text/plain";
        Response.Write("ERROR" + ex.Message);
    }

    wfrImg = null;
%>