Search code examples
asp.netsql-serverdynamic-data

Transparent PNG not working in SQL Server Image field


I have tried uploading a transparent PNG image to a SQL server image field, and retrieving it using the DynamicData ImageHandler. The Transparent areas in the image appear white upon rendering. Please advise about any solutions


Solution

  • The problem was the content type of the returned response from the handler. After setting the content type to image/png, it worked