473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

HELP: Product Database - adding images!

ok, so i now know how to add, edit, delete and search for products (havent
figured out categorisation out yet tho) - how do i upload an image and save
the file name to the database as part of the admin? something dummies can
follow that doesnt use a component (can i throw in a chunk of code and
specify the table fieldname and directory the file needs to go into?)

cheerz

mark
Jul 19 '05 #1
3 2425
On Thu, 9 Oct 2003 10:24:18 +0100, "mark | r" <ma**@nmd.freeuk.com>
wrote:
ok, so i now know how to add, edit, delete and search for products (havent
figured out categorisation out yet tho) - how do i upload an image and save
the file name to the database as part of the admin? something dummies can
follow that doesnt use a component (can i throw in a chunk of code and
specify the table fieldname and directory the file needs to go into?)


Well, you do it that same way you send other data to a record. :)

You need to provide more info if you want specifics, such as what
database, what ASP code you're using and so on.

Jeff
Jul 19 '05 #2

"Jeff Cochran" <jc*************@naplesgov.com> wrote in message
news:3f****************@msnews.microsoft.com...
On Thu, 9 Oct 2003 10:24:18 +0100, "mark | r" <ma**@nmd.freeuk.com>
wrote:
ok, so i now know how to add, edit, delete and search for products (haventfigured out categorisation out yet tho) - how do i upload an image and savethe file name to the database as part of the admin? something dummies can
follow that doesnt use a component (can i throw in a chunk of code and
specify the table fieldname and directory the file needs to go into?)


Well, you do it that same way you send other data to a record. :)

You need to provide more info if you want specifics, such as what
database, what ASP code you're using and so on.

Jeff


using msaccess and a standard insert sql? i already have the product name,
description etc working in an administratable format, i plan on adding
session based security which looks simple enough, i plan on having thumbs
and enlargements uploaded to the web server in a particular folder.

im really looking for a lump of script that will take form fields and upload
a file to the server, adding the filename into the database.

mark
Jul 19 '05 #3
On Thu, 9 Oct 2003 13:09:14 +0100, "mark | r" <ma**@nmd.freeuk.com>
wrote:

"Jeff Cochran" <jc*************@naplesgov.com> wrote in message
news:3f****************@msnews.microsoft.com...
On Thu, 9 Oct 2003 10:24:18 +0100, "mark | r" <ma**@nmd.freeuk.com>
wrote:
>ok, so i now know how to add, edit, delete and search for products(havent >figured out categorisation out yet tho) - how do i upload an image andsave >the file name to the database as part of the admin? something dummies can
>follow that doesnt use a component (can i throw in a chunk of code and
>specify the table fieldname and directory the file needs to go into?)


Well, you do it that same way you send other data to a record. :)

You need to provide more info if you want specifics, such as what
database, what ASP code you're using and so on.

Jeff


using msaccess and a standard insert sql? i already have the product name,
description etc working in an administratable format, i plan on adding
session based security which looks simple enough, i plan on having thumbs
and enlargements uploaded to the web server in a particular folder.

im really looking for a lump of script that will take form fields and upload
a file to the server, adding the filename into the database.


Google "ASP Upload" and you'll find quite a few options. Also take a
look at:

http://www.aspfaq.com/show.asp?id=2189
http://www.aspfaq.com/show.asp?id=2149

You have the option of how you'll store the images to think about, for
example, will they all be the same size? Will they be at that size
when you upload or will they need to be resized? Are you storing all
image files in a single directory or in separate directories? If
separate, how are the directories structured?

For example, if all images are stored with the part number as the name
and in the same folder, say \images, then you don't even need to worry
about storing the info in a database. You'd just provide them with
code similar to:

Response.Write "<IMG SRC='/images/" & PartNumber & ".jpg'>"

Jeff
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old...
9
by: netpurpose | last post by:
I need to extract data from this table to find the lowest prices of each product as of today. The product will be listed/grouped by the name only, discarding the product code - I use...
2
by: cda_Alford | last post by:
Hello, I applogize in advance for my lack of understanding and the lack of information I'm about to provide. I am out of my element and I'm hoping that someone here can help point me in the...
5
by: PR | last post by:
Searchable product images + prices database? What system should I use to put a database on the WEB which shows images and allows searches, including searches within given price ranges for...
2
by: Gamesetal | last post by:
I need to include a picture / photograph in a Db then from a query export to Excel - picture included - I just can't find a way through this - can anyone please help? TIA JOhn
1
by: ollielaroo | last post by:
Hi guys, Firstly I did do a search for this one first but I couldn't find anything related in this forum. I am using Dreamweaver MX and trying to build admin pages for an ASP site. My problem is...
2
praclarush
by: praclarush | last post by:
I need to take an image that was in a Array object image and have it display in a table. this is for a item list the table has four columns one for the image, one for a description, one for a price,...
2
by: xaviergxf | last post by:
Hi everyone, I have the following problem: i have 3 pages: Page1, Page2, Page3; These pages register a product. In Page1 i do a post to Page2. In Page2, i asynchrony upload some images, to be...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.