Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASPX
<asp:GridView ID="gvhistory" runat="server" DataKeyNames="studentID" AutoGenerateColumns="False" CssClass="Grid" AlternatingRowStyle-CssClass="alt">
    <asp:TemplateField HeaderText="Image">
        <ItemTemplate>
            <asp:Label ID="lblname" runat="server"  Width="150px"   Text='<%#Eval("candidateImage") %>'/>
        </ItemTemplate>
    </asp:TemplateField>


What I have tried:

I'd like to display the display stored in the database which is using the mediumblob. The column name is called candidateimage. The image in the database is [BLOB - 15.7 KB] being stored like this
Posted
Updated 14-Oct-20 8:41am
v2
Comments
F-ES Sitecore 14-Oct-20 11:16am    
google "asp.net show blob image gridview" and you'll find various ways to do this.

1 solution

As shared there are tonnes of info on web, a similar query asked here at CP itself: how to display image from oracle blob data[^]

Couple of References that would help you:
Oracle BLOB data type and C# | Chanmingman's Blog[^]
Insert /retrieve an image into/ from a blob field in Oracle database using C#.Net[^]
Display images from SQL Server Database in ASP.Net GridView control[^]

It's just the data is of blob type (probably oracle), rest the entire logic remains same on how to save and retrieve (other than ADO.NET part). So go ahead and try of.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900