943,714 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 15218
  • C# RSS
Jul 11th, 2008
0

Image Uploading using c#.net + asp.net

Expand Post »
Hi all,
Can u plz tell me as how to upload images.
I am developing an web application similar to picasaweb album.
I need to know as where the images to be saved(is it in database directly each image or just image path in database and files in application folder)

Can u plz provide me the database structure (if any ) similar to my application.

Expecting replyASAP
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sireesha.c is offline Offline
17 posts
since May 2008
May 5th, 2009
0

Re: Image Uploading using c#.net + asp.net

don't used to save images in database. because it will load your database server. so you can use image storage path in database server to view the image in your ASP.net page.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tuhin.bd is offline Offline
1 posts
since May 2009
May 5th, 2009
0

Re: Image Uploading using c#.net + asp.net

Hi

From your post on C# forum i believe you want to know how to upload files in C#. I agree with tuhin.bd that you should store filepath of the image rather than the image itself.

Therefore to save a filepath of the selected image, you will first get the filepath of the image by the following code, which can be either behind a command button or however you want to invoke.

Quote ...
OpenFileDialog opfd = new OpenFileDialog();
opfd.Filter = "Your extension here (*.EXT)|*.ext|All Files (*.*)|*.*";
opfd.FilterIndex = 1;


if (opfd.ShowDialog() == DialogResult.OK)
{
filepath = opfd.FileName;
}
This filepath can then be stored in your database which can be of text type in microsoft access for example.
Make sure that the directory path at your host matches the path saved.
Hope this helps, if you would like to know about retrieval of images from database in c#, please let me know.
I dont know much about asp so i hope somebody else posts saving and retrieving in asp
Regards
Sarah
Reputation Points: 10
Solved Threads: 1
Light Poster
brainbox is offline Offline
29 posts
since May 2006
Mar 29th, 2011
0
Re: Image Uploading using c#.net + asp.net
how to insert the data from datagrid to database by using data adopter in c# and sql server. plz if anybody get send it to me,my mailid is umaak.26.2.88@gmail.com
Reputation Points: 10
Solved Threads: 0
Newbie Poster
umaak is offline Offline
1 posts
since Mar 2011
Mar 29th, 2011
0
Re: Image Uploading using c#.net + asp.net
check this thread it has discussion related to your problem
Reputation Points: 219
Solved Threads: 122
Postaholic
abelLazm is offline Offline
2,085 posts
since Feb 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Help,,!!
Next Thread in C# Forum Timeline: Window form C#





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC