Re: Loading an image webcontrol directly without saving file to server



Ok, thanks everyone for the input. Keeping the file on disk and saving the
path to the file in the database was my first idea, but I was having problem
refreshing the image if the user changed the photo, etc. I guess I need
resolve that issue rather than keeping the image in memory. I'll open up a
new thread.



"Mark Denardo" <mark@xxxxxxxxxxxxxxx> wrote in message
news:7oWdnQi11oit9qfYnZ2dnUVZ_sSdnZ2d@xxxxxxxxxxxxxxxxx
My question is similar to one someone posted a few months back, but I
don't see any replies.

Basically I want to be able to have users upload photos and save them in a
database (as byte data) and be able to load them to an image webcontrol,
but system.web.ui.webcontrols.image only seems to have a control to load
the image from a URL.

There's no way to load this directly without saving the image as a file
and then using "Image1.ImageUrl = ..."?

Seems a little silly, am I missing something obvious here?



----- Original Message -----
From: "byrd48" <byrd.48@xxxxxxxxxxxxxx>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Wednesday, July 05, 2006 9:02 PM
Subject: system.drawing.image to system.web.ui.webcontrols.image


Hi,
I have a method that creates a system.drawing.image behind the scenes.
I would like to load this image to a web page as a control, as in
td.controls.add(). I know I can save this generated image to the
server as a jpg, then load it as a webcontrols image, but I would
rather skip that step and load it without saving.
What do you suggest?
Thanks in advance.

Jon





.



Relevant Pages

  • VB6.0 Data Grid (Run-Time)
    ... ss .mdb databases, now... ... and linked the grid to the Data1 control... ... The problem is that I have a 'Backup Database View' control which is ... d to load in a new form a Data control, a DB Grid and load the .mdb ...
    (microsoft.public.vb.general.discussion)
  • DBgrid (opening .mdb runtime)
    ... and linked the grid to the Data1 control... ... The problem is that I have a 'Backup Database View' control which is ... d to load in a new form a Data control, a DB Grid and load the .mdb ...
    (microsoft.public.vb.general.discussion)
  • Crystal questions
    ... Using my VB.NET app I keep getting the error "can't load data" when I start ... learning how to load a database on another sqlserver instance. ... In the Crystal reports visual designer for the VS.NET IDE, ... the crystal reports control is looking for the database in ...
    (microsoft.public.vb.crystal)
  • Re: Ajax TabContainer behaviour like Windows TabControl?
    ... Database while Page load. ... There is a TabContainer control below the Menu Control. ... Now i want to add corresponding UserControl dynamically when user clicks on ...
    (microsoft.public.dotnet.framework.aspnet)
  • DBgrid (opening .mdb runtime)
    ... System in vb6.0 with the Data control, DBgrid, ... and linked the grid to the Data1 control... ... The problem is that I have a 'Backup Database View' control which is ... d to load in a new form a Data control, a DB Grid and load the .mdb ...
    (microsoft.public.vb.general.discussion)