i want to add the picture in my asp.net web application using C#.net

Posted on 2009-12-20
Medium Priority
Last Modified: 2013-11-26

i want to add the picture and save those picture in database or file system .. like i want to do which facebook doo .. i use Telerik Rad Controls.. kindly tell me how could i do ..

the filename of the picture is firstname + lastname concat

please write the code i am very thankful.

thanks in advance..

Accepted Solution

devanandjha earned 1000 total points
ID: 26093822

System.Drawing.Image dbImage = System.Drawing.Image.FromFile(fileName,true); // filename- image path
dbImage.Save(FileName); //FileName - Location

LVL 10

Assisted Solution

anv earned 1000 total points
ID: 26094643

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 …
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
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 anti-spam), the admin…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

615 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