
SqlConnection conn = new SqlConnection(strconnection); SqlDataAdapter sda = new SqlDataAdapter("select Front_Image,Rear_Image from Transactions", conn); DataTable dt = new DataTable(); sda.Fill(dt); foreach (DataRow row in dt.Rows) { //Get the byte array from image file byte[] imgBytes = (byte[])row["Front_Image"]; //If you want convert to a bitmap file TypeConverter tc = TypeDescriptor.GetConverter(typeof(Bitmap)); Bitmap MyBitmap = (Bitmap)tc.ConvertFrom(imgBytes); string imgString = Convert.ToBase64String(imgBytes); //Set the source with data:image/bmp Front_img.Src = String.Format("data:image/Bmp;base64,{0}\"", imgString);


Hi Its Shrawan fro a:m web,
In my last post i have asked u about rad ajax problem in mozilla 3.0 in radControls for asp.net not asp.net ajax,
Thankyou very much for ur reply
anyway i have installed radcontrols fro asp.net ajax and i get rid of that perticulat input string error,
But now when i am using radajaxloadingpanel controls it asked me to place radscript manager and http handler in web.config I have placed that, But now when i have clicked on any of the buttons in whichever forms i used this rascript manager i am getting following exception as an alert and i am not able continue my navigation beyond this
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '
<!DOCTYPE html PUB'.
u can see tat error in http://globalcarbon.amwebhost.net/index.aspx goto anyof calculators on ur right side like quick,house,car etc and try to hit the button and then go to shopping_cart.aspx click on next button u will get the error instance there also,
Can u please help me how should i overcome this error,
Thak you
Hope i will get a quich solution from u, awaiting for that
Sravan@amweb.ie
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="ChooseProjectDdl"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ChooseProjectDdl" /> <telerik:AjaxUpdatedControl ControlID="RadMenu1" /> <telerik:AjaxUpdatedControl ControlID="BreadCrumbSiteMap" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadMenu1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadMenu1" /> <telerik:AjaxUpdatedControl ControlID="ChooseProjectDdl" /> <telerik:AjaxUpdatedControl ControlID="BreadCrumbSiteMap" /> <telerik:AjaxUpdatedControl ControlID="ContentPlaceHolder1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxMainLoadingPanel" runat="server" Skin="Default" /> <div> <header> <div class="projectChooser"> <telerik:RadComboBox ID="ChooseProjectDdl" runat="server" Width="250" Height="150" on EmptyMessage="Select a Project" EnableLoadOnDemand="true" OnSelectedIndexChanged="ChooseProjectDdl_SelectedIndexChanged" AutoPostBack="true" Label="Project:"> <WebServiceSettings Method="GetUserProjects" Path="ProjectsWebService.asmx" /> </telerik:RadComboBox> </div> </header> <div class="demo-container size-medium no-bg"> <div class="demo-content"> <telerik:RadMenu ID="RadMenu1" runat="server" EnableRoundedCorners="true" EnableShadows="true" EnableTextHTMLEncoding="true" Skin="Default"> </telerik:RadMenu> <br /> <div class="breadcrumb"> <telerik:RadSiteMap ID="BreadCrumbSiteMap" runat="server" DataTextField="Text" DataNavigateUrlField="NavigateUrl" Skin="Silk"> <DefaultLevelSettings ListLayout-RepeatDirection="Horizontal" SeparatorText="/" Layout="Flow" /> </telerik:RadSiteMap> <h3> <asp:Literal runat="server" ID="PageTitleLiteral" /> </h3> </div> </div> </div> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div>if (!Page.IsPostBack) { if (Session["ActiveProject"] != null && GlobalClientInfo.LoggedUser != null) { ProjectEntity pjt = (ProjectEntity)Session["ActiveProject"]; m_ProjectId = pjt.Id; ChooseProjectDdl.SelectedValue = m_ProjectId.ToString(); } }