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.NETand SilverlightThis chapter will explain how to access <strong>FILESTREAM</strong> data from applications builtusing ASP.NET and Silverlight. It will adopt a very hands-on approach, consisting <strong>of</strong>the six labs below.• Lab 4: Uploading files to a <strong>FILESTREAM</strong> database from an ASP.NET web page.• Lab 5: Deploying and configuring a <strong>FILESTREAM</strong> web application on IIS.• Lab 6: Creating a web handler to serve images from a <strong>FILESTREAM</strong> database.• Lab 7: Displaying thumbnail images <strong>of</strong> items from a <strong>FILESTREAM</strong> database onan ASP.NET web page.• Lab 8: Using SqlFileStream in an N-tier scenario.• Lab 9: Playing a video stored in a <strong>FILESTREAM</strong> database on a Silverlight application.<strong>The</strong> functionalities that we try to implement in these labs are probably familiar to most<strong>of</strong> you. <strong>The</strong> first five labs in this chapter deal with uploading and downloading image files.Most developers will have done this numerous times in their applications, by uploadingthose files to a location on the server and serving the files upon client request later. Whatis different in these labs is that we will store the data in the <strong>FILESTREAM</strong> column <strong>of</strong> adatabase table, then serve client requests from there.We'll use the same sample database for Labs 4–8 in this chapter, as shown in Listing 5-1.165

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

Saved successfully!

Ooh no, something went wrong!