Solved

uploading images c#

Posted on 2010-09-13
2
255 Views
Last Modified: 2013-12-17
I'm trying to make a form where user put their information, and upload their images.
Lots of websites tell me how to do things separately.

For example, they all show me how to upload picture (just the picture only), but
I want the filepath of the picture to be uploaded to database along with the other information
submitted.

So when a person clicks the submit,
name, address and other info get uploaded into DB with the image (filename and path)
0
Comment
Question by:kmc10314
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 41

Expert Comment

by:guru_sami
ID: 33663787
if you are using fileupload control, you get the name like: FileUpLoad1.FileName

http://www.c-sharpcorner.com/uploadfile/mahesh/fileupload10092005172118pm/fileupload.aspx?articleid=79850d6d-0e91-4d7b-9e27-a64a09b0ee6b

For path: It will be a path on server, and it could be a static one I believe e.g. ~/images or depends on where you are uploading.
0
 

Accepted Solution

by:
kmc10314 earned 0 total points
ID: 33664042
nm.. i got it. thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question