Thank-you. That worked in both my sample application and my original project I tried implementing RadBinaryImage into, odd that that assembly is only being recognized by web sites and not web apps even with a reference to it.
Anyhow, moving on with my original issue of trying to get radbinaryimage working...
My db table has multiple entries and an 'Image' column that has an uploaded image in it. When I use RadBinaryImage and set the datavalue ='<%# ((Binary)Eval("member_photo")).ToArray() %>' it works just fine. I see my image when viewing that record. The problem now is when I try to use this in a RadGrid. the GridBinaryImageColumn is only producing a dead image placeholder icon, but when I add a GridTemplateColumn right after with a RadBinaryImage I see the image just fine in that column.
This produces a dead image and a valid image. To explain further, my LINQ .dbml file has member_photo defined as type 'Image' because that is what my database table column datatype is. My image in my database was inserted using "m.member_photo = new System.Data.Linq.Binary(img);" img is my inputstream from the uploader. When I use RadBinaryImage it's DataValue must be of byte[] type so we cast it using Binary of the ToArray(). But if GridBinaryImageColumn also must be a byte[] but I'm passing it a Linq.Binary. And when I try to add the DataType property there is no 'Image' type to choose and I tried System.Byte, System.String, System.SByte, Image, System.Data.Linq.Binary, Binary, etc. and it doesn't work.
Is this correct? What should be the appropriate? Is my error in using a database 'Image' column type?
Just to add I just took the sample project and added a radgrid connected to my db and used a SQLDataSource instead of a Linq datasource and I get a Parameter is not valid exception for the radbinaryimage. It appears using 'Image' db type isn't valid. You sample showed that your column type is "VarBinary(MAX)" and not "Image". If this is a Telerik design I would suggest that your RadBinaryImage can handle Image columns. Any clarification much appreciated.
Regards,
Perry