Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Following code gives this error;
OleDbDataAdapter internal error: invalid row set accessor: Ordinal=15 Status=UNSUPPORTEDCONVERSION.

After removing Image field from table it works good. How can i retrieve image from table?
I'm using Sql CE 3

C#
vcon = new OleDbConnection(@"Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=" + Controller.DBPath);

public DataTable GetReporters()
{
    vcon.Open();
    using (DataTable table = new DataTable())
    {
        using (OleDbDataAdapter da = new OleDbDataAdapter(Select * from Reporters, vcon))
        {
            da.Fill(table);
        }
        vcon.Close();
        return table;
    }
}
Posted
Updated 15-Nov-13 9:35am
v3

1 solution

Convert column type to nvarchar(max or varchar(max)or varbinary(max) instead.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900