You should be able to get it via: (byte[])reader["Data"]
.
Also note that the image
data type is deprecated, and will be removed in a future version of SQL Server; use varbinary(max)
instead.
More Related Contents:
- MetadataException: Unable to load the specified metadata resource
- ADO.NET |DataDirectory| where is this documented?
- How to use DbContext.Database.SqlQuery(sql, params) with stored procedure? EF Code First CTP5
- Get the generated SQL statement from a SqlCommand object?
- Get connection string from App.config
- Pass table valued parameter using ADO.NET
- Entity Framework with NOLOCK
- Can you get the column names from a SqlDataReader?
- Is it necessary to manually close and dispose of SqlDataReader?
- When using Trusted_Connection=true and SQL Server authentication, will this affect performance?
- How to create a DataTable in C# and how to add rows?
- Handling ExecuteScalar() when no results are returned
- Calling Oracle stored procedure from C#?
- Is SqlCommand.Dispose() required if associated SqlConnection will be disposed?
- ado.net Closing Connection when using “using” statement
- How to run multiple SQL commands in a single SQL connection?
- How to pass a table-value parameter
- Creating a SQL Server table from a C# datatable
- How should I multiple insert multiple records?
- SQL: Update a row and returning a column value with 1 query
- How to keep single SQL Server connection instance open for multiple request in C#?
- Fill an array (or arraylist) from SqlDataReader
- How to use SqlCommand to CREATE DATABASE with parameterized db name?
- ExecuteNonQuery returning -1 when using sql COUNT despite the query string
- What size do you use for varchar(MAX) in your parameter declaration?
- How do I extract data from a DataTable?
- Reading a date using DataReader
- What ‘length’ parameter should I pass to SqlDataReader.GetBytes()
- How do I connect to a SQL database from C#?
- How can I Pass a Table Name to SqlCommand?