ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 27th, 2003, 11:05 AM
chrisd33 chrisd33 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 38 chrisd33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
image

hi

i wish to enable users to submit an image on one of the fields on the form within an asp page.

essentially i suppose they would submit it as an attachment though it would be entered and stored in the access dbase, from which it would be pulled in connection with specific text fields.

i'm using ultradev though trying to use an input field though it seems to talk about retrieving data.

can this image as a field collection by done on the input with asp form ?

cheers

chris

Reply With Quote
  #2  
Old June 27th, 2003, 01:06 PM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
not

sure I understand everything but from what I understand, is that you want to allow users to select a *file* on their machine and submit your <form>...</form>.

Once submitted, you want to retrieve the file and save it INSIDE your Access database.

If that is the scenario you are looking for then:

1) You must use an upload component(unless you create your own using VB for example)

2) Once the file has been uploaded(using the component) I *strongly* suggest saving the *PATH* to the file inside your Access database instead of the entire file. Why? Well for many reasons and one of them would be that your database will really increase in size which can lead to performance lost in the long run.

3) So save the file someone on the hard drive of your web server and INSERT the path inside your field.

You can use any editor you want/have but one thing for sure is that none of them will, by a simple click of a wizard, code everything for you. You will have to get your hands dirty

The good thing is that any upload component comes with asp code example so this can really help.

Hope this helps!
Sincerely

Vlince

Reply With Quote
  #3  
Old June 27th, 2003, 01:16 PM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,827 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 22 h 57 m 29 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
Please use an appropriate subject title next time. You can view the sticky thread at the top of this forum for more information on how to post a question.

Reply With Quote
  #4  
Old June 30th, 2003, 05:02 AM
chrisd33 chrisd33 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 38 chrisd33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
thanks for that vlince.

do you know of any examples of this ?

what is teh code on the form for example which will enable the user to uplaod the file to my webserver ?

also how do i provide the fucntionality to enable them to enter the location of their file ? what should i do enable them to submit multiple files ?

are all these questions answered when using an upload component ?

cheers

Reply With Quote
  #5  
Old June 30th, 2003, 08:10 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
---BEGIN QUOTE---
do you know of any examples of this ?
---END QUOTE---

The entire web is full of code example, try searching google.com for any example. Even better, once you've decided on the *component* you'll use, then they usually have/give code example on *how to use it with asp*. Try looking for safileup that's just one of them...




---BEGIN QUOTE---
what is teh code on the form for example which will enable the user to uplaod the file to my webserver ?
---END QUOTE---

Again, you'll find the code in the documentation(or on the company's web site) that comes with the component.




---BEGIN QUOTE---
also how do i provide the fucntionality to enable them to enter the location of their file ?
---END QUOTE---

Use a simple html control like this:
<input type="file" name="strFileName">
This will show an html control kinda looks like a <textbox> but is followed by a <browse> button that once clicked, will open a dialogue box so that the user can select/chose the filen he/she wants to upload. Check out the documentation or search google.com for more info on that html control.




---BEGIN QUOTE---
what should i do enable them to submit multiple files ?
---END QUOTE---

Well if it works with uploading *one* file don't you think you'll manage to make it work for multiple ? I mean think of it for a second...if you want them to upload two file at once then you'll need two <input type="file"> box's no? If its four then create four <input type="file"> box's and if its five then...you get it right?




---BEGIN QUOTE---
are all these questions answered when using an upload component
---END QUOTE---

Answered? Hummm I don't know but it certainly gona help. The documentation that comes with the component comes with examples(code) so try it you'll see!


Hope this helps!
Sincerely

Vlince

Reply With Quote
  #6  
Old June 30th, 2003, 09:44 AM
chrisd33 chrisd33 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 38 chrisd33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
cheers,

i found one at asp smart which answered most of my questions.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Submitting images through ASP(Use to be:image)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway