how to convert WebControls.Image to a byte[] to store in DB?

  • Thread starter Thread starter Jim Hammond
  • Start date Start date
J

Jim Hammond

Is there any way to convert a System.Web.UI.WebControls.Image to byte[] so
that the image can be stored in a DB?

Thanks,

Jim
 
If it's on the same server, you are running the app, you could use
FileStream for example. If on another server, request it from the server and
read with BinaryReader.
 
Thanks, but the image is not in a file. It came from the client, and only
exists on the server as a System.Web.UI.WebControls.Image control.

Jim

If it's on the same server, you are running the app, you could use
FileStream for example. If on another server, request it from the server and
read with BinaryReader.
 
Back
Top