Ask a Question related to ASP.NET General, Design and Development.
-
Gary B #1
Image can't hold an image?
I'm converting a windows application to a web application. (by the way,
this is way easier than it used to be - many of the modules went over
untouched!)
The windows app used a pictuebox and got an image directly from a sqlserver
database. Upon examination of the Image web control, it seems the imageURL
property must come from a file? Is they anyway to directly feed it a vb.net
image object?
Thanks,
Gary
Gary B Guest
-
Open Image in 'Kodak Image Edit Control' with web browser.
hi, 1.I want to show a image file of type '.tif' in the browser window; for that I'm writting as ASP code page. 2.This '.tif' type image can be... -
Resizing high res image smaller results in blurred image
Hi there, I have a high res logo in PSD format (around 1500px x 1500px) but when I resize it to around 300px x 300px the resulting image is not... -
How To Browse for an image file and save it to image server folder
I trying to browse for an image file and save it to the server image folder. in other words , upload the picture. I tried html and aspx.net... -
Can I take a small (320x240), blurry image, and make it a clear, large image?
Just wondering if there is an easy way to do this? I'm sure it won't be perfect cause photoshop can only work with what's there, but maybe it can... -
Photoshop 7.0 Sliced Image Causes DreamWeaver MX Table To add 1 Pixel gif image!
Hello, I sliced my page in Photoshop 7 and did a "Save Optimized" to HTML. I opened the page in Dreamweaver MX and it looks find. I want the TABLE... -
Steve C. Orr, MCSD #2
Re: Image can't hold an image?
No, you must use an image tag which links to a file. It doesn't have to be
a picture file though. You could link it to a ASPX page that dynamically
outputs the image.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Gary B" <deanblakely@earthlink.net> wrote in message
news:OBUd6p6VDHA.2040@TK2MSFTNGP10.phx.gbl...sqlserver> I'm converting a windows application to a web application. (by the way,
> this is way easier than it used to be - many of the modules went over
> untouched!)
>
> The windows app used a pictuebox and got an image directly from aimageURL> database. Upon examination of the Image web control, it seems thevb.net> property must come from a file? Is they anyway to directly feed it a> image object?
> Thanks,
> Gary
>
>
Steve C. Orr, MCSD Guest
-
Gary B #3
Re: Image can't hold an image?
Steve,
I had actually tried something like that earlier with
environmanet.currentdirectory but I changed my code to read as follows after
your suggestion:
FilePath = Server.MapPath("/DBAPhotoQuery")
FilePath = FilePath & "\currentPic.jpg"
--> at this point filePath is:
c:\inetpub\wwwroot\DBAPhotoQuery\currentPic.jpg
myImage.Save(FilePath, Imaging.ImageFormat.Jpeg)
DBAPictureBox1.ImageUrl = FilePath
This also gets a generic GDI + exception.
but if I insert:
FilePath = "c:\currentpic.jpg"
just before the myImage.save then it works!!
I've checked very carefully and the c:\inetpub.... string is valid. Maybe
its security related??
I appreciate the help so far,
Thanks
Gary
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:e$VhUZ7VDHA.3924@tk2msftngp13.phx.gbl...[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebHttpServerUtilityClassMapPathTopic.a sp[/url]> The code sample you listed may work on your dev box, but it won't once you
> move it to the server, because you haven't given a real URL.
> You can use the Server.Mappath method to help with this.
> Here's more info:
>where>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "Gary B" <deanblakely@earthlink.net> wrote in message
> news:uCYeGT7VDHA.2316@TK2MSFTNGP09.phx.gbl...> .save> > Steve:
> > Well, the following works:
> > myImage.Save("C:\currentPic.jpg", Imaging.ImageFormat.Jpeg)
> > ImageCtrl.ImageUrl = "C:\currentpic.jpg"
> >
> > But if I try to make it a relative url, such as ".\curentpic.jpg", the> > gets "a generic GDI + exception. How can I save it to the directoryto> > the web is running?
> > Thanks,
> > Gary
> >
> >
> >
> >
> > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > news:u9NKJu6VDHA.2008@TK2MSFTNGP11.phx.gbl...> > > No, you must use an image tag which links to a file. It doesn't haveover> dynamically> > be> > > a picture file though. You could link it to a ASPX page that> way,> > > outputs the image.
> > >
> > > --
> > > I hope this helps,
> > > Steve C. Orr, MCSD
> > > [url]http://Steve.Orr.net[/url]
> > >
> > >
> > > "Gary B" <deanblakely@earthlink.net> wrote in message
> > > news:OBUd6p6VDHA.2040@TK2MSFTNGP10.phx.gbl...
> > > > I'm converting a windows application to a web application. (by the> > > > this is way easier than it used to be - many of the modules wenta> > > > untouched!)
> > > >
> > > > The windows app used a pictuebox and got an image directly from a
> > > sqlserver
> > > > database. Upon examination of the Image web control, it seems the
> > > imageURL
> > > > property must come from a file? Is they anyway to directly feed it>> >> > > vb.net
> > > > image object?
> > > > Thanks,
> > > > Gary
> > > >
> > > >
> > >
> > >
> >
>
Gary B Guest
-
Steve C. Orr, MCSD #4
Re: Image can't hold an image?
The ASPNET user account must have create/write privileges to whatever folder
you're trying to save to.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Gary B" <deanblakely@earthlink.net> wrote in message
news:%23OQL647VDHA.3220@tk2msftngp13.phx.gbl...after> Steve,
> I had actually tried something like that earlier with
> environmanet.currentdirectory but I changed my code to read as followsyou> your suggestion:
>
>
> FilePath = Server.MapPath("/DBAPhotoQuery")
> FilePath = FilePath & "\currentPic.jpg"
>
>
> --> at this point filePath is:
> c:\inetpub\wwwroot\DBAPhotoQuery\currentPic.jpg
>
>
> myImage.Save(FilePath, Imaging.ImageFormat.Jpeg)
> DBAPictureBox1.ImageUrl = FilePath
>
> This also gets a generic GDI + exception.
> but if I insert:
> FilePath = "c:\currentpic.jpg"
> just before the myImage.save then it works!!
>
> I've checked very carefully and the c:\inetpub.... string is valid. Maybe
> its security related??
> I appreciate the help so far,
> Thanks
> Gary
>
> "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> news:e$VhUZ7VDHA.3924@tk2msftngp13.phx.gbl...> > The code sample you listed may work on your dev box, but it won't once[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebHttpServerUtilityClassMapPathTopic.a sp[/url]>> > move it to the server, because you haven't given a real URL.
> > You can use the Server.Mappath method to help with this.
> > Here's more info:
> >have> where> >
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD
> > [url]http://Steve.Orr.net[/url]
> >
> >
> > "Gary B" <deanblakely@earthlink.net> wrote in message
> > news:uCYeGT7VDHA.2316@TK2MSFTNGP09.phx.gbl...> > .save> > > Steve:
> > > Well, the following works:
> > > myImage.Save("C:\currentPic.jpg", Imaging.ImageFormat.Jpeg)
> > > ImageCtrl.ImageUrl = "C:\currentpic.jpg"
> > >
> > > But if I try to make it a relative url, such as ".\curentpic.jpg", the> > > gets "a generic GDI + exception. How can I save it to the directory> > > the web is running?
> > > Thanks,
> > > Gary
> > >
> > >
> > >
> > >
> > > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > > news:u9NKJu6VDHA.2008@TK2MSFTNGP11.phx.gbl...
> > > > No, you must use an image tag which links to a file. It doesn'tthe> to> > dynamically> > > be
> > > > a picture file though. You could link it to a ASPX page that> > > > outputs the image.
> > > >
> > > > --
> > > > I hope this helps,
> > > > Steve C. Orr, MCSD
> > > > [url]http://Steve.Orr.net[/url]
> > > >
> > > >
> > > > "Gary B" <deanblakely@earthlink.net> wrote in message
> > > > news:OBUd6p6VDHA.2040@TK2MSFTNGP10.phx.gbl...
> > > > > I'm converting a windows application to a web application. (byit> over> > way,> > > > > this is way easier than it used to be - many of the modules went> > > > > untouched!)
> > > > >
> > > > > The windows app used a pictuebox and got an image directly from a
> > > > sqlserver
> > > > > database. Upon examination of the Image web control, it seems the
> > > > imageURL
> > > > > property must come from a file? Is they anyway to directly feed> a>> >> > > > vb.net
> > > > > image object?
> > > > > Thanks,
> > > > > Gary
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Steve C. Orr, MCSD Guest



Reply With Quote

