Hi
In below code I want to display image but it is not displayed. Image is saved in LMS/Upload/Student/ProfilePic folder
Data in database is - VIV_ST_0003_18_01_2023_15_06_39.png
BALStudents bALStudents = new BALStudents();
StudentDetail Result = bALStudents.GetStudentDetailByLoginID(Convert.ToInt32(hdfStudentID.Value));
if (Result != null)
{
imgProfile.ImageUrl = Result.ProfilePic;
}
Thanks
Sachin SinghPosted Jan 19, 2023, 6:10 AM
it should be
Kip HackmanPosted Jan 19, 2023, 7:14 PM
You can use LEADTOOLS Document SDK technology in your application. You can leverage the DocumentViewer and DocumentFactory classes. The DocumentFactory class allows you to load any LEADTOOLS supported file format and the DocumentViewer class allows you to view the loaded document.
See the code snippet above for example.
Pasang TamangPosted Jan 19, 2023, 6:06 AM
Hi,
You have to append folder path also when assigning value to ImageUrl. Change your code as in below code.
Regards,
Pasang