This is a migrated thread and some comments may be shown as answers.

Facing Problem when inserting Record in RadGrid

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rohit
Top achievements
Rank 1
Rohit asked on 02 Aug 2013, 04:17 PM
Hi,
I am using Rad Grid 
and telerik:RadAsyncUpload or telerik:RadBinaryImage ,
here i attached my code.
I am facing at the time of insert this problem
Unable to cast object of type 'System.Drawing.Bitmap' to type 'System.Byte[]'.
Please help me.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 07 Aug 2013, 10:30 AM
Hi Rohit,

I would suggest you to follow the approach provided in the online example below for uploading new image using RadAsyncUpload in RadGrid.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=grid
Give it a try and let me know if the presented error appear.

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
General Discussions
Asked by
Rohit
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or