Question : Asp.Net I need help on a HTTP Handler that will stream binary data in order to display an image.

My SQL has already selected the image & returned the image in a value called: ImageData1
I need an HTTP Handler that will stream ImageData1's content and display it.
-----------------------------------------------------------------------------------------------------
I have an image control  a .dll that does this already and it works...But I need one so that I can see the source code.

this is the image control that works:
 <Rbm:RbmBinaryImage ID="Image10" runat="server" Height="100px" DisplayThumbnail="true"
                  ImageContent='<%#IIf(Typeof(Eval("ImageData1")) is DBNull, Nothing, Eval("ImageData1"))%>' />

this is what I need in a http handle to stream and Eval ImageDate1.

Answer : Asp.Net I need help on a HTTP Handler that will stream binary data in order to display an image.

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
// Iterate through the query to get the names
var query = from r in employeeDataTable.AsEnumerable()
            where r.Field<string>("LastName") == "Raman"
            select r.Field<string>(“FirstName”); 

foreach( var name in query )
{
    Console.Writeline(name);
}

===========================================================
// You can also turn it to a List<String>
List<String> query = (from r in employeeDataTable.AsEnumerable()
                      where r.Field<string>("LastName") == "Raman"
                      select r.Field<string>(“FirstName”)).ToList();
Random Solutions  
 
programming4us programming4us