Upload Images To SQL Server By Way Of An ASP.NET Web Form

Posted by: Radical Development, on 11 Aug 2007 | View original | Bookmarked: 0 time(s)

First thing you must do is create your form. The controls used above are: TextBox UploadFile Button Label Next the button event click should contain the following: protected void UploadBtn_Click(object sender, EventArgs e) { Stream imgStream = UploadFile.PostedFile.InputStream; int imgLen = UploadFile.PostedFile.ContentLength; string imgContentType = UploadFile.PostedFile.ContentType; string imgName = txtImgName.Value; byte[] imgBinaryData = new byte[imgLen]; ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: SQL | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1257 | Hits: 83

Similar Posts

  • Using SqlBulkCopy To Perform Efficient Bulk SQL Operations more
  • Ajax Control Toolkit: new controls, bug fixes more
  • Announcing the WebsiteSpark Program more
  • An alternative to Crystal more
  • Accessing Images On Flickr From An ASP.NET Website Using The Flickr.Net Library more
  • Announcing the Microsoft AJAX CDN more
  • Put Your Views (and Pages) On a Diet more
  • Subtext Security Issue and Patch more
  • Using SSL in your application more
  • Open source and Free Small Business Mobile Web site more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD