I have used VS 2010 Beta and SQL Server Express Edition 2008.

Create a Table In SQL Server 2008.
sql Code:
  1. USE [TestIdentity]
  2. GO
  3.  
  4. /****** Object:  Table [dbo].[Photos]    Script Date: 12/18/2009 10:57:17 ******/
  5. SET ANSI_NULLS ON
  6. GO
  7.  
  8. SET QUOTED_IDENTIFIER ON
  9. GO
  10.  
  11. CREATE TABLE [dbo].[Photos](
  12.     [PhotoId] [int] IDENTITY(1,1) NOT NULL,
  13.     [PhotoBlob] [image] NULL,
  14.     [PhotoTitle] [nvarchar](50) NULL
  15. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  16.  
  17. GO
  18. /*
  19. Insert an image into this table.
  20. This is a short cut to insert images in a database.
  21. You can also use TEXTCOPY, but that's not available in the express edition of SQL Server.
  22. */
  23.  
  24. INSERT INTO Photos(PhotoTitle,PhotoBlob)
  25. SELECT 'Bino', BulkColumn from Openrowset( Bulk 'D:\user\Monkey_Bin.jpg', Single_Blob) As PhotoBlob
  26. GO
  27.  
  28. /*Check your table */
  29. SELECT * from Photos
  30. Go

This is my WPF XAML form.

Code:
<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525" Name="MainForm">
    <Grid>
        <Image Height="200" HorizontalAlignment="Left" Margin="24,16,0,0" Name="imgDBExtract" Stretch="Fill" VerticalAlignment="Top" Width="242" ToolTip="Extracted Image" Source="/ExtractImageFromDB;component/Images/Ben%20Franklin%20II.jpg" UseLayoutRounding="True" />
        <Button Content="Click Me" Height="23" HorizontalAlignment="Left" Margin="291,16,0,0" Name="btnShow" VerticalAlignment="Top" Width="75" />
    </Grid>
</Window>
This is the code I used to connect to the database and display the image. This code stores the image to a file location on the folder. For the purposes of demonstration, I have used the Current Directory.

vb.net Code:
  1. Imports System
  2. Imports System.Collections
  3. Imports System.ComponentModel
  4. Imports System.IO
  5. Imports System.Data
  6. Imports System.Data.SqlClient
  7. Imports System.Configuration
  8. Class MainWindow
  9.     Dim myImage As Image
  10.     Dim myConn As SqlConnection
  11.     Public Function ExtractImage()
  12.         Try
  13.             Dim cmdSelect As New SqlCommand("select PhotoBlob from Photos where PhotoID=4", myConn)
  14.             Dim barrImg As Byte() = DirectCast(cmdSelect.ExecuteScalar(), Byte())
  15.             Dim strfn As String = Convert.ToString(DateTime.Now.ToFileTime())
  16.             Dim fs As New FileStream(strfn, FileMode.CreateNew, FileAccess.Write)
  17.             fs.Write(barrImg, 0, barrImg.Length)
  18.             fs.Flush()
  19.             fs.Close()
  20.             Dim myImg As New BitmapImage
  21.             myImg.BeginInit()
  22.             myImg.UriSource = New Uri(System.Environment.CurrentDirectory & "\" & strfn)
  23.             myImg.EndInit()
  24.             imgDBExtract.Source = myImg
  25.         Catch ex As Exception
  26.             MsgBox(ex.ToString, MsgBoxStyle.Critical, "eXTRACT IMAGE")
  27.         End Try
  28.     End Function
  29.  
  30.     Private Sub btnShow_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles btnShow.Click
  31.         Try
  32.             myConn = New SqlConnection("Data Source=.\SQLEXPRESS;Initial Catalog=TestIdentity;Integrated Security=True;User Id=latetothegame")
  33.             myConn.Open()
  34.             If myConn.State = 1 Then
  35.                 ExtractImage()
  36.             End If
  37.         Catch ex As Exception
  38.             MsgBox(ex.ToString, MsgBoxStyle.Critical, "cONNECT CLICK")
  39.         End Try
  40.     End Sub
  41.  
  42.  
  43. End Class


If you want to save images to a database, you can read this.