17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5: <strong>FILESTREAM</strong> with ASP.NET and SilverlightLab 6 demonstrated how to serve images stored in a <strong>FILESTREAM</strong> database to the webclients. For simplicity, we created an ASP.NET web form to do this. However, a moreappropriate way would be by using an ASP.NET handler, and the <strong>FILESTREAM</strong>-relatedcode that we wrote in the handler web form can be added to a generic handler with noadditional changes. Lab 7 used the web handler to display image files. Lab 8 then took thenext step and separated the implementation <strong>of</strong> the data store from the client. We alsoused an actual ASP.NET handler in that lab.In Lab 9, we saw how to create a Silverlight application that plays video files stored in a<strong>FILESTREAM</strong>-enabled <strong>SQL</strong> <strong>Server</strong> database. We created another handler web page forserving the video files stored in the database. A MediaElement component added to theSilverlight application invoked the video handler which streamed the video data to theclient web page.226

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!