Ask a Question related to ASP Database, Design and Development.
-
Michael Walton #1
Storing Images in SQL Server - ASP storage and retrieve
I need some help, because I am utterly confused with how to do this. I have
2 things that I need to figure out, and could use some sample code or just
some general direction:
1) I need to build an admin page that allows me to browse to the file that I
want stored in SQL Server 2000 in an image field, have it uploaded to the
server, and then stored in the db. I see this done all the time, so I don't
think this part is too hard, but I'm not sure how to get the image into the
db.
2) I want to display the image within a web page, so I would want to pull
the image out of the db, place it on my web server in a certain location,
and then reference the file in the HTML. How do I do that?
Thanks in advance for any help you can provide.
--Mike
Michael Walton Guest
-
XML Storing on Server
Hi there! I'm new of this forum, and quite new of Flash scripting as well. I'm triyng to embed a "Flash-News-Editor" in my web site, and the idea... -
store/retrieve images to server
Hi All, I want to retrieve images from server and send them back to Servlet without using FileUpload. It's an urgent requirement please help me out.... -
unable to retrieve or display images from sql database
Using Dreamweaver 8 and connecting to an Sql Server 2000 i am not able to display image files from the sql table. the other fields in the table are... -
Storing and displaying Images
I am trying to find out which one of following two (2) options is fastest and most reliable in order to work with 100,000 images located in 100... -
Web Custom Control - Retrieve Images from a Multifile Assembly
How do I store an image and a web custom control's dll in a multifile assembly so that the image can be retrieved and displayed while the control... -
Foo Man Chew #2
Re: Storing Images in SQL Server - ASP storage and retrieve
Why do you want to store the image in the database? This article really
helped me decide which way to go on this, and I'm glad I didn't use the
database for file storage after I've seen the headaches it's caused some of
my colleagues.
[url]http://www.aspfaq.com/show.asp?id=2149[/url]
There are also links to knowledge base articles that show a few different
methods, with code samples, if it's really what you want to do. But I
highly recommend you reconsider.
"Michael Walton" <mwalton@NOthomasassociatesSPAM.cc> wrote in message
news:e4VZHevzDHA.1616@TK2MSFTNGP11.phx.gbl...have> I need some help, because I am utterly confused with how to do this. II> 2 things that I need to figure out, and could use some sample code or just
> some general direction:
>
> 1) I need to build an admin page that allows me to browse to the file thatdon't> want stored in SQL Server 2000 in an image field, have it uploaded to the
> server, and then stored in the db. I see this done all the time, so Ithe> think this part is too hard, but I'm not sure how to get the image into> db.
>
> 2) I want to display the image within a web page, so I would want to pull
> the image out of the db, place it on my web server in a certain location,
> and then reference the file in the HTML. How do I do that?
>
> Thanks in advance for any help you can provide.
>
> --Mike
>
>
Foo Man Chew Guest
-
Michael Walton #3
Re: Storing Images in SQL Server - ASP storage and retrieve
I normally just store images on the directory structure, but I am having a
real hard maintaining this in the environment that I am in. We have many,
many authors and they keep moving images, deleting images, renaming images,
and I end up with broken images, so I'd rather take care of it through the
ASP code, so they can't screw it up. I will check the link, though.
"Foo Man Chew" <foo@man.chew> wrote in message
news:OTCn0hvzDHA.3216@TK2MSFTNGP11.phx.gbl...of> Why do you want to store the image in the database? This article really
> helped me decide which way to go on this, and I'm glad I didn't use the
> database for file storage after I've seen the headaches it's caused somejust> my colleagues.
>
> [url]http://www.aspfaq.com/show.asp?id=2149[/url]
>
> There are also links to knowledge base articles that show a few different
> methods, with code samples, if it's really what you want to do. But I
> highly recommend you reconsider.
>
>
> "Michael Walton" <mwalton@NOthomasassociatesSPAM.cc> wrote in message
> news:e4VZHevzDHA.1616@TK2MSFTNGP11.phx.gbl...> have> > I need some help, because I am utterly confused with how to do this. I> > 2 things that I need to figure out, and could use some sample code orthat> > some general direction:
> >
> > 1) I need to build an admin page that allows me to browse to the filethe> I> > want stored in SQL Server 2000 in an image field, have it uploaded topull> don't> > server, and then stored in the db. I see this done all the time, so I> the> > think this part is too hard, but I'm not sure how to get the image into> > db.
> >
> > 2) I want to display the image within a web page, so I would want tolocation,> > the image out of the db, place it on my web server in a certain>> > and then reference the file in the HTML. How do I do that?
> >
> > Thanks in advance for any help you can provide.
> >
> > --Mike
> >
> >
>
Michael Walton Guest
-
Michael Walton #4
Re: Storing Images in SQL Server - ASP storage and retrieve
Simpler isn't always best, unfortunately. Like I told Foo Man Chew, I have
control issues with the images being on the directory structure, so I need
to look into db methods. Thanks for the opinion, though (and I agree with
it).
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uAOoGivzDHA.1500@TK2MSFTNGP12.phx.gbl...just> 1) Actually it's not a good idea. Upload the image to the server and store
> the Name/Location in the DB. look at [url]www.darkfalz.com/1043[/url] for a simple
> upload script.
>
> 2) Much simplier if you have the image on the server.... :}
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> [url]www.Darkfalz.com[/url]
>
>
> "Michael Walton" <mwalton@NOthomasassociatesSPAM.cc> wrote in message
> news:e4VZHevzDHA.1616@TK2MSFTNGP11.phx.gbl...> have> > I need some help, because I am utterly confused with how to do this. I> > 2 things that I need to figure out, and could use some sample code orthat> > some general direction:
> >
> > 1) I need to build an admin page that allows me to browse to the filethe> I> > want stored in SQL Server 2000 in an image field, have it uploaded topull> don't> > server, and then stored in the db. I see this done all the time, so I> the> > think this part is too hard, but I'm not sure how to get the image into> > db.
> >
> > 2) I want to display the image within a web page, so I would want tolocation,> > the image out of the db, place it on my web server in a certain>> > and then reference the file in the HTML. How do I do that?
> >
> > Thanks in advance for any help you can provide.
> >
> > --Mike
> >
> >
>
Michael Walton Guest
-
Curt_C [MVP] #5
Re: Storing Images in SQL Server - ASP storage and retrieve
1) Actually it's not a good idea. Upload the image to the server and store
the Name/Location in the DB. look at [url]www.darkfalz.com/1043[/url] for a simple
upload script.
2) Much simplier if you have the image on the server.... :}
--
Curt Christianson
Owner/Lead Developer, DF-Software
[url]www.Darkfalz.com[/url]
"Michael Walton" <mwalton@NOthomasassociatesSPAM.cc> wrote in message
news:e4VZHevzDHA.1616@TK2MSFTNGP11.phx.gbl...have> I need some help, because I am utterly confused with how to do this. II> 2 things that I need to figure out, and could use some sample code or just
> some general direction:
>
> 1) I need to build an admin page that allows me to browse to the file thatdon't> want stored in SQL Server 2000 in an image field, have it uploaded to the
> server, and then stored in the db. I see this done all the time, so Ithe> think this part is too hard, but I'm not sure how to get the image into> db.
>
> 2) I want to display the image within a web page, so I would want to pull
> the image out of the db, place it on my web server in a certain location,
> and then reference the file in the HTML. How do I do that?
>
> Thanks in advance for any help you can provide.
>
> --Mike
>
>
Curt_C [MVP] Guest
-
Foo Man Chew #6
Re: Storing Images in SQL Server - ASP storage and retrieve
> 2) I want to display the image within a web page, so I would want to pull
Read that sentence a couple of times, and think about how efficient that is> the image out of the db, place it on my web server in a certain location,
> and then reference the file in the HTML.
compared to <img src=/images/uploadedImage.jpg>
Foo Man Chew Guest
-
Michael Walton #7
Re: Storing Images in SQL Server - ASP storage and retrieve
Right - I totally understand. However, when that image isn't there, because
dumb-idiot content developer has moved it or deleted it, how efficient is
the empty image with the red x in it?? I totally understand what I am
asking, and unless you have a better way to control the images on the
server, I have to use the DB to do it. This will take the control away from
the content developer and put it back into my hands. Trust me....the way
you are telling to do it is the way I've done it for 10 years, but its not
working in this environment, because of the morons I'm dealing with.
--Mike
"Foo Man Chew" <foo@man.chew> wrote in message
news:exJUSkvzDHA.2308@TK2MSFTNGP11.phx.gbl...pull> > 2) I want to display the image within a web page, so I would want tolocation,> > the image out of the db, place it on my web server in a certainis>> > and then reference the file in the HTML.
> Read that sentence a couple of times, and think about how efficient that> compared to <img src=/images/uploadedImage.jpg>
>
>
Michael Walton Guest
-
Michael Walton #8
Re: Storing Images in SQL Server - ASP storage and retrieve
Thanks, Foo. That link had some good information in it, as well as links
with great examples. Exactly what I was looking for.
I also appreciate the opinions that are out there....if I could do it that
way, I would continue to do so, but until they start hiring intelligent
people (or intelligent people start breeding), I'm stuck with this.
--Mike
"Foo Man Chew" <foo@man.chew> wrote in message
news:OTCn0hvzDHA.3216@TK2MSFTNGP11.phx.gbl...of> Why do you want to store the image in the database? This article really
> helped me decide which way to go on this, and I'm glad I didn't use the
> database for file storage after I've seen the headaches it's caused somejust> my colleagues.
>
> [url]http://www.aspfaq.com/show.asp?id=2149[/url]
>
> There are also links to knowledge base articles that show a few different
> methods, with code samples, if it's really what you want to do. But I
> highly recommend you reconsider.
>
>
> "Michael Walton" <mwalton@NOthomasassociatesSPAM.cc> wrote in message
> news:e4VZHevzDHA.1616@TK2MSFTNGP11.phx.gbl...> have> > I need some help, because I am utterly confused with how to do this. I> > 2 things that I need to figure out, and could use some sample code orthat> > some general direction:
> >
> > 1) I need to build an admin page that allows me to browse to the filethe> I> > want stored in SQL Server 2000 in an image field, have it uploaded topull> don't> > server, and then stored in the db. I see this done all the time, so I> the> > think this part is too hard, but I'm not sure how to get the image into> > db.
> >
> > 2) I want to display the image within a web page, so I would want tolocation,> > the image out of the db, place it on my web server in a certain>> > and then reference the file in the HTML. How do I do that?
> >
> > Thanks in advance for any help you can provide.
> >
> > --Mike
> >
> >
>
Michael Walton Guest
-
Brynn #9
Re: Storing Images in SQL Server - ASP storage and retrieve
So your content guy has his web server, and you have your DB server
... right? That's gotta suck ... can he create a virtual folder for
the website ... a folder that is on your server?
On Tue, 30 Dec 2003 12:20:18 -0500, "Michael Walton"
<mwalton@NOthomasassociatesSPAM.cc> wrote:
>Right - I totally understand. However, when that image isn't there, because
>dumb-idiot content developer has moved it or deleted it, how efficient is
>the empty image with the red x in it?? I totally understand what I am
>asking, and unless you have a better way to control the images on the
>server, I have to use the DB to do it. This will take the control away from
>the content developer and put it back into my hands. Trust me....the way
>you are telling to do it is the way I've done it for 10 years, but its not
>working in this environment, because of the morons I'm dealing with.
>
>--Mike
>
>"Foo Man Chew" <foo@man.chew> wrote in message
>news:exJUSkvzDHA.2308@TK2MSFTNGP11.phx.gbl...>pull>> > 2) I want to display the image within a web page, so I would want to>location,>> > the image out of the db, place it on my web server in a certain>is>>>> > and then reference the file in the HTML.
>> Read that sentence a couple of times, and think about how efficient that>>> compared to <img src=/images/uploadedImage.jpg>
>>
>>
>Brynn Guest
-
BenignVanilla #10
Re: Storing Images in SQL Server - ASP storage and retrieve
"Michael Walton" <mwalton@NOthomasassociatesSPAM.cc> wrote in message
news:ehS9UlvzDHA.2604@TK2MSFTNGP09.phx.gbl...have> Simpler isn't always best, unfortunately. Like I told Foo Man Chew, I<snip>> control issues with the images being on the directory structure, so I need
> to look into db methods. Thanks for the opinion, though (and I agree with
> it).
Why not solve your control issues, but storing the final images on the web
server, where the authors cannot touch them? They can have their own working
copy and submit the final to be included?
BV.
BenignVanilla Guest
-
Sanjeev #11
Re: Storing Images in SQL Server - ASP storage and retrieve
I am also in the same boat, and i need to do this too any
inputs will be huge, any luck anybodywrote in message>-----Original Message-----
>
>"Michael Walton" <mwalton@NOthomasassociatesSPAM.cc>Foo Man Chew, I>news:ehS9UlvzDHA.2604@TK2MSFTNGP09.phx.gbl...>> Simpler isn't always best, unfortunately. Like I toldstructure, so I need>have>> control issues with the images being on the directorythough (and I agree with>> to look into db methods. Thanks for the opinion,images on the web><snip>>> it).
>
>Why not solve your control issues, but storing the finalhave their own working>server, where the authors cannot touch them? They can>copy and submit the final to be included?
>
>BV.
>
>
>.
>Sanjeev Guest



Reply With Quote

