Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

FAO Fosters and/or ASP experts

Thread Tools
 
Search this Thread
 
Old 07 February 2002, 04:56 PM
  #1  
Dream Weaver
Scooby Regular
Thread Starter
 
Dream Weaver's Avatar
 
Join Date: Feb 2000
Location: Lancashire
Posts: 9,844
Received 0 Likes on 0 Posts
Thumbs up

Fosters

I believe you are the man when it comes to ASP. I am still in the middle of my first ASP project (well, nearly complete actually), but I am struggling with uploading images to the DB. I want the user to be able to browse their C Drive, click add, and the image is then stored in an "image" field, to be displayed on the web page when called.

I understand it needs to be stored as Binary Data, but is there an easy way of doing it?

My reckoning is: (these images are for used cars)

* form with current car data, and "add picture" button.
* asp process page, takes carid from form page, and submitted image - inserts it as binary data into field.
* display page then calls image when referencing record using carid.

Sound any good?

Also, is there a way to resize or scale said image, or will the user need to do this beforehand?

DW
Old 07 February 2002, 06:17 PM
  #2  
HHxx
Scooby Regular
 
HHxx's Avatar
 
Join Date: Nov 2001
Posts: 2,576
Likes: 0
Received 0 Likes on 0 Posts
Cool

I'll have a look at work tomorrow if I have time. I wrote some code to do this sort of thing. Its been a while since I did it. Basically its just an admin asp page that allows the user to upload images to a sql database (blob field).

H
Old 07 February 2002, 07:30 PM
  #3  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Post

Which bit are you struggling with?

to browse/Upload the users files...
<input type=file name=sFileName value=""><input type=button value="Add" onClick="addsong()">

the actual upload is another matter!
I have bits of code that I'll post as I find them
here's a piece of code that'll upload any file...
http://www.btinternet.com/~madtoye/saveany.asp
more to follow...
Old 07 February 2002, 07:42 PM
  #4  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Post

I found this one - you'll need to specify your ADO connection, but it's pretty self contained...

http://www.btinternet.com/~madtoye/fileuploader.zip
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
30 January 2024 01:27 PM
ALi-B
Other Marques
18
28 September 2015 08:29 PM
roysc
ScoobyNet General
2
16 September 2015 09:10 AM
The Joshua Tree
Computer & Technology Related
18
11 September 2015 09:24 PM



Quick Reply: FAO Fosters and/or ASP experts



All times are GMT +1. The time now is 01:11 PM.