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 SilverlightIf everything is set up correctly, the web application will make a remote call to the WCFservice to obtain the MemoryStream containing the image. Other than a possible slightdelay, the application is functionally the same as Lab 6. Architecturally, however, theapplication looks very different because the web application displaying the image nolonger relies on knowledge <strong>of</strong> the data store.If you have access to two computers (perhaps using virtualization), deploy the WCFconsole host application to the computer running your NorthPole database instanceand deploy the web application to the other computer. Be sure to open up the portnumber specified in the host's configuration file in the computer's firewall s<strong>of</strong>tware.Lab 9: Playing a Video Stored in a <strong>FILESTREAM</strong>Database on a Silverlight ApplicationIn this lab we will create a Silverlight application that will play a video stored in a<strong>FILESTREAM</strong> database.To do this, we will:• create a new table in the NorthPole database and load a video• create a Silverlight application• create the video handler• add a MediaElement and configure it• run and test the application.216

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

Saved successfully!

Ooh no, something went wrong!