Solved

uploading images c#

Posted on 2010-09-13
2
247 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
Comment Utility
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
Comment Utility
nm.. i got it. thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now