Graphics or Bitmap to screen

G

Guest

hey all,
if i have a Graphics object or Bitmap object how do i get it to display on
my web page?

thanks,
rodchar
 
M

Mark Fitzpatrick

You can't do it like you would with a windows form. Images cannot be
embedded into a page, they can only be references through the <img> tag (or
asp:image control). The trick for dynamic images such as images stored in a
database is to create a second page that becomes the image generator.
Essentially, this is a page without any HTML in it and the only thing it
returns is the binary data that represents an image. You can pass
querystring parameters to it to determine which image to get (such as an
ID), then perform whataver action you need to get or to generate the image,
then use the dump the data to the output stream. Just make sure you have no
HTML or whitespace within the designer surface of the page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top