Solved

uploading images c#

Posted on 2010-09-13
2
254 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
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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