現在GenericHandler(.ashx)
、画像コントロールで画像を表示するために使用しています。
以下のコードを参照してください。
[1] .ASPX
<asp:Image ID="Image1" runat="server" Width="350px" Height="415px" />
[2] .cs(codebehind)
Image1.ImageUrl = string.Format("GridviewImage.ashx?ItemID={0}", itemID);
次に、イメージをImage1
バイト配列 ( byte[]
) として取得する必要があります。
出来ますか?