コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int idFlight = util.GetIntParam(Request, "id", LogbookEntry.idFlightNew);

        if (idFlight != LogbookEntry.idFlightNew)
        {
            LogbookEntry le = new LogbookEntry
            {
                FlightID = idFlight
            };
            le.LoadDigitalSig();

            byte[] sig = le.GetDigitizedSignature();

            if (sig != null && sig.Length > 0)
            {
                Response.ContentType = "image/png";
                Response.Clear();
                Response.BinaryWrite(sig);
                Response.End();
            }
        }
    }