-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,151
  • 9
  • 55
  • 63

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
  • 92,042
  • 19
  • 143
  • 183