Last post Jan 05, 2007 01:51 AM by amirtharaj82
Jan 05, 2007 01:51 AM|amirtharaj82|LINK
Iam doing an application called File Gallery. In that i need to show appropriate icon for particular file. For example notepad icon for notepad file. Aspx icon for Aspx file.Like that. For that i got one article to determine the icon and found the icon
with SHGetFileinfo. Now i need to save this icon into database and retrive from it to show in the Grid view. I could convert the icon class into Byte Array with icon.save() method into Stream .Then i could save it in Database in Byte array format. But while
retriving the Gridview shows NO image . The image field is empty with cross mark. I think the Byte array stored in Database is not valid .
Then I tried to convert the icon object to Bitmap and saved in Database In Byte Array with Bitmap.save method.Now when the grid is binded the image is same for all type of files. It shows common image.
I tried a lot to save icon into database and retrieve it. Please help me to proceed.
Regarding Icon class in Asp.net