Common Problems with rendering Bitmaps into ASP.NET OutputStream

Posted by: Rick Strahls WebLog, on 20 Oct 2006 | View original | NEW Bookmarked: 0 time(s)

Raise your hand if youve loaded an image from a Resource (or a BLOB database field):   Bitmap bm2 = this.GetGlobalResourceObject("Resources", "_BitMap") as Bitmap; Response.ContentType = "image/jpeg"; bm2.Save(Response.OutputStream, ImageFormat.Jpeg); Response.End();   and finding out that you cant save the image! You get a not so happy error: A generic error occurred in GDI+. Description: An unhandled exception occurred during the execution of the current web request. Please review the...

Advertisement
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2098 | Hits: 166

Similar Posts

  • ASP.NET MVC: DevExpress Mail Demo more
  • Export Word documents to XPS - Open XML Paper Specification format more
  • Bind InfoPath form to XML, Tables, SharePoint Lists & Web Services more
  • Rock The Vote! Choose DevExpress for 2009 Readers' Choice Awards more
  • Create or Manage XPDL 1.0 & 2.1 packages using Aspose.Workflow more
  • Application Identifiers (AI) for EAN-128 barcode generation more
  • Create charts & add ad hoc capabilities to .NET Web & WinForm apps more
  • PDF Linearization (Optimization), Faster display of PDF documents more
  • Sneak Peek: New ASP.NET Editors Features and Demo for 2009 volume 2! more
  • Whats new in Aspose.Total for .NET Q1 2009? 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