Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 4th, 2003, 05:34 AM
Authorized User
 
Join Date: Sep 2003
Location: islamabad, pk, Pakistan.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default Image Uploading

hello Please can anyone tell me how can I uploads an image using ASP(Save To DataBase). and when searched the image will bw displayed in the browser.
Bye

Zaeem Sherazi
__________________
Zaeem Sherazi
Reply With Quote
  #2 (permalink)  
Old October 4th, 2003, 04:32 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

If you're using classic ASP, you'll need a third party component to this (Microsoft provides on as well, but it sort of sucks).

One component I have used a couple if times is the Dundas upload control. It's free and you can download it from this location. It comes with full documentation and sample code, so getting it to work shouldn't be too hard.

The only downside is that you provider / ISP needs to support it as well. If you're running your own server, than this is not a problem.

There are "pure VBScript" implementations possible as well, but they are a lot trickier to get to work. This Dundas thingy will do all the hard work for you.

It's usually recommended to save the image file to disk, and just store its path / location in the database.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #3 (permalink)  
Old November 13th, 2003, 09:20 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

extention to Imar...
to deal with long data type like image,ntext types
you could use ADO appendchunk,getchunck field methods to store/read images ...

Ahmed Ali
Software Developer
Reply With Quote
  #4 (permalink)  
Old November 14th, 2003, 02:58 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

using appendchunck method as a way to fill image field in database.. it would be bad solution as the database will grow up and response will be worse, so uploading files to certain path would be better

Ahmed Ali
Software Developer
Reply With Quote
  #5 (permalink)  
Old August 5th, 2006, 06:38 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Imar
 Hi there,

If you're using classic ASP, you'll need a third party component to this (Microsoft provides on as well, but it sort of sucks).

One component I have used a couple if times is the Dundas upload control. It's free and you can download it from this location. It comes with full documentation and sample code, so getting it to work shouldn't be too hard.

The only downside is that you provider / ISP needs to support it as well. If you're running your own server, than this is not a problem.

There are "pure VBScript" implementations possible as well, but they are a lot trickier to get to work. This Dundas thingy will do all the hard work for you.

It's usually recommended to save the image file to disk, and just store its path / location in the database.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Hi Imar,
>I saw your response to post re - upload images to db, where you
>recommend that the images sit on the folder in the server, and have
>pointer in the database of the image file location.
>
>The reason I write this email here, is I am in such a dilemma how
>its implemented / integrated to VP-ASP.
>
>I am using VP-ASP (free) ecart - visit http://www.vpasp.com/
>I need images loaded, a capability for the customer upload their
>images the server. The VP-ASP do not have this feature, and I wonder
>if the plugin for images upload is straightforward or can crash the
>ecart. If the integration is modular, could it be tied to the
>shopcart, and that would be great.
>
> From your p2pwrox forum response re post - upload images, I believe
> you have done this and make it work. Would you have some time to
> advise/assist me in this please ?
>
>Thanks

regards
Ian

Reply With Quote
  #6 (permalink)  
Old August 5th, 2006, 05:53 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Ian,

I am not sure what you're asking here.

Are you asking how to integrate this code into your VP-ASP behavior? In that case, I can't help because I don't know VP-ASP.

If you're asking something else, can you clarify your question and explain in more detail what it is you're having problems with?

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Image Uploading? courtney_ctisn Classic ASP Basics 0 October 12th, 2007 05:35 AM
Default image generation while uploading an image! ostwald ASP.NET 2.0 Professional 1 September 12th, 2007 01:44 AM
Uploading Image shurabhavesh ASP.NET 2.0 Basics 0 April 21st, 2005 05:49 AM
Image Uploading zaeem Classic ASP Basics 4 October 31st, 2003 03:06 AM
Uploading an Image zaeem Classic ASP Components 1 October 9th, 2003 09:41 AM



All times are GMT -4. The time now is 09:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.