473,320 Members | 1,951 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,320 software developers and data experts.

Adding Pictures

Hi All

I'm new to ASP and a few querys

I have created my database in Access with the following fields

StockCode (Text Box, Primary Key)
Item (Memo)
Price (currency)
Picture (memo)
OnOffer (Yes/No)

and I know that access table cannot have a picture in it, only a access
form using OLE, but how do I get my asp page to display a picture for
every record? The picture would be a picture of the product with the
Stockcode as the filename - m001110.jpg?

All help is appreciated

Jul 26 '06 #1
2 1578

UKCB Channel Moderator wrote:
Hi All

I'm new to ASP and a few querys

I have created my database in Access with the following fields

StockCode (Text Box, Primary Key)
Item (Memo)
Price (currency)
Picture (memo)
OnOffer (Yes/No)

and I know that access table cannot have a picture in it, only a access
form using OLE, but how do I get my asp page to display a picture for
every record? The picture would be a picture of the product with the
Stockcode as the filename - m001110.jpg?
Store the image file in a folder. Let's say you choose one called
"images" which is in the same directory that holds the page your
script is in. In the database, store the image file name in the
Picture field. Change the picture field to a text type. Memo is far
too large for your needs. When you create a recordset, it will contain
the image file name in the field for the picture. In your code you so
this:

Response.Write "<img src=""/images/" & rs("Picture") & """>"

--
Mike Brind

Jul 26 '06 #2
plz tell me how to upload image in asp page?
Mike Brind wrote:
UKCB Channel Moderator wrote:
Hi All

I'm new to ASP and a few querys

I have created my database in Access with the following fields

StockCode (Text Box, Primary Key)
Item (Memo)
Price (currency)
Picture (memo)
OnOffer (Yes/No)

and I know that access table cannot have a picture in it, only a access
form using OLE, but how do I get my asp page to display a picture for
every record? The picture would be a picture of the product with the
Stockcode as the filename - m001110.jpg?

Store the image file in a folder. Let's say you choose one called
"images" which is in the same directory that holds the page your
script is in. In the database, store the image file name in the
Picture field. Change the picture field to a text type. Memo is far
too large for your needs. When you create a recordset, it will contain
the image file name in the field for the picture. In your code you so
this:

Response.Write "<img src=""/images/" & rs("Picture") & """>"

--
Mike Brind
Jul 27 '06 #3

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

Similar topics

0
by: JakeC | last post by:
Hey all, I'm currently redesigning a website that a friend and I started about a year ago. It is a daily surf report so when choosing the best script/language to use for the new design, I found...
0
by: Marcel - IDUG Europe 2005 | last post by:
Visit the blog for a virtual experience of the conference. Check out the blog at: http://idugeurope.blogspot.com Here are some previous posts: - Pictures Live on Tuesday
3
by: Chris Minchin | last post by:
Hi there, I am a bit of a newboy to access I have a database which I wish to have pictures. for example: record one will have data and a picture, record two will have different data and a diferent...
1
by: Kevin | last post by:
Hi, Does anyone know how I can add a web cam to an access database for capturing jpg. photos? As a not-for-profit agency that supports people with disabilities, we have to update their photos...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
3
by: xxtokenxx | last post by:
I am writing a birthday list for a site for my school. While developing it. Currently the code for the output of birthdays is: <html><head> <title>Birthday List</title><script...
2
vdraceil
by: vdraceil | last post by:
Hi,i wanna know how .gif animated pictures can be used in or added to a form?
3
by: stormadvisor | last post by:
Hello all, I am new at VB so please bear with me. That being said, I am creating a form in Word. I Have the need for pictures to be added, by the user, to the protected form. Is there a way to do...
3
by: Andrew Koptyaev | last post by:
I want to add some screenshoots to product detail page on my discount shareware site http://www.rebatesoft.com. Can anybody point me to PHP exampe source regarding adding images (I think 3...
1
by: =?Utf-8?B?S2ltYmVyYnVt?= | last post by:
I made a new folder in My Pictures and now I want to send pictures I got from an email to that folder. I can not figure out how to do this. Can anyone help me? I would greatly appreciate it.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.