1

How can I retrieve an image that is stored in ObjectImage datatype in database into and ASP page? I am unable to find an appropriate datatype in asp.net for it.

Adi Inbar
  • 12,097
  • 13
  • 56
  • 69
  • Do you want to show the image in your page or to send it directly to the client? – xanatos Aug 17 '13 at 07:14
  • ***SQL*** is just the *Structured Query Language* - a language used by many database systems, but not a a database product... many things are vendor-specific - so we really need to know what **database system** (and which version) you're using (please update tags accordingly).... – marc_s Aug 17 '13 at 08:00
  • yes, i want to display it on my web page. – Riddhi More Nov 30 '13 at 11:39

1 Answers1

0

In code behind file, you should use byte[] array data type. And in web page use a <img> tag.

More info and complete how-to is here

Community
  • 1
  • 1
Amin Saqi
  • 18,549
  • 7
  • 50
  • 70