-2

I have created a table in SQL and stored some fields image. When I want to retrieve the data and image, it's not working. I have stored the image by converting it into byte array. Will you please help me on how to retrieve the data and image into ASP webpage?

Smi
  • 13,850
  • 9
  • 56
  • 64

1 Answers1

1

Steps:

  1. Read the byte array from blob (image) field and create a MemoryStream
  2. Save that byte array or Write it to Response buffer.

You may create a Handler to serve these images.

Community
  • 1
  • 1
KV Prajapati
  • 93,659
  • 19
  • 148
  • 186