dotnetspider.com
Login Login    Register      

TutorialsForumCareer DevelopmentResourcesReviewsJobsInterviewCommunitiesProjectsTraining

Subscribe to Subscribers
Talk to Webmaster
Tony John

Facebook
Google+
Twitter
LinkedIn
Online MembersEmmy
More...
Join our online Google+ community for Bloggers, Content Writers and Webmasters




Forums » .NET » ASP.NET »

Storing and retreiving image in sql database.


Posted Date: 11 Sep 2009      Posted By:: senthilkumar     Member Level: Silver    Member Rank: 1678     Points: 1   Responses: 2



hy frnds,

im developing webapplication in asp.net with c#.

here i have an image folder in solution explorer..

now i want to upload my image to database and it should be in image folder also..thn i hve to retrieve image and show it in image control..

plz send me the code in c#..urgent.specify wht field i hve to use in database for storing image..

regards,
senthil




Responses

#423273    Author: Kunal      Member Level: Gold      Member Rank: 289     Date: 11/Sep/2009   Rating: 2 out of 52 out of 5     Points: 2

refer this

http://www.codersource.net/csharp_read_write_images_database.aspx

Happy Programming
Kunal
Don't forget to rate the response...



 
#423276    Author: Nisar      Member Level: Gold      Member Rank: 67     Date: 11/Sep/2009   Rating: 2 out of 52 out of 5     Points: 2

hey!
Refer this link to save image path in DB
http://www.dotnetspider.com/resources/27754-Upload-Image-define-size.aspx

string CompletePath = "~/Images/" + sThumbFile; //Get folder and FilePath
this variable gives you the path of file, so save completePath value in database in Varchar data field

string sSavePath;
sSavePath Contain Folder Name, You have to assign your own Folder Name where u r saving your images, Please feel free to ask
nisar_87@hotmail.com

_______________________________
Nisar Ahmad
DotNetSpider MVM, Badge of Appreciation Award – 2010
Greatness Can't be achieved by doing big things, If you really want to be great, Do small things in Great way.
My Forum



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Doubt it writing the query
Previous : Diff b/w interface abstract class ?
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Email subscription
  • .NET Jobs
  • .NET Articles
  • .NET Forums
  • Articles Rss Feeds
    Forum Rss Feeds


    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.