Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load/Retrieve Icons from database?

Status
Not open for further replies.

Ajb2528

Technical User
Feb 22, 2002
270
0
0
GB
Hi!

Does anyone know of a way to load and retrieve an icon (.ico) file to/from a SQL Server database? I found some code on the web that will load/retrieve bitmaps (.bmp) but this does not seem to work with icon (.ico) files

I need to load an icon file say fred.ico into a SQL Server 2005 database in one application and then retrieve it from another application and display it in a listview set up in detail mode.

I am using VB.Net 2005.

Any help will be appreciated!

Regards,

Alan
 
For images, i would save the name of that icon into the database. You can get it if you join a fixed path like "~/images/" with the string "fred.ico" that is retrieved from the database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top