C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Save Images to a Table using VB.NET


Posted Date: 02 Jun 2008    Resource Type: Code Snippets    Category: Images
Author: ranipriyaMember Level: Gold    
Rating: Points: 5



The following is a code sample that saves an image to database. The input image should be a jpeg image. The code also take the path of the image as input. While saving, the code also logs activities to a text file whose path is hardcoded below.


Try
mSourceImage.Save(txtpicPath.Text, System.Drawing.Imaging.ImageFormat.Jpeg)
MsgBox("Saved.....")
Dim stWriter As New StreamWriter("c:\LogImages.txt", True)
stWriter.WriteLine(msqlIN)
stWriter.Close()
btnclear.PerformClick()
Catch ex As Exception
MsgBox(ex.Message)
Catch ex As Exception
MsgBox(ex.Message)
cn.Close()
End Try




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Saving Images to a Table  .  Save images to a table using VB.NET  .  Save Images to a Table  .  Save images from VB.NET application  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Converting Image To Graycode
Previous Resource: Random Image selector after 1 minute
Return to Discussion Resource Index
Post New Resource
Category: Images


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use