Hello.
I am using a RadToolTipManager for displaying the full size image of thumb nail image in my form.It is not working when I am loading the image from the database using a binary image control.But it is working perfectly when I am loading image from a folder.
The web service code I have used is given below
public string GetFullSizeImage(object context)
{
cApplicationSettings oAppSettings = new cApplicationSettings();
Telerik.Web.UI.RadBinaryImage img = new RadBinaryImage();
img.DataValue = (byte[])oAppSettings.GetDefaultPhoto(1).Rows[0][0];//This function will return the image from my table
StringWriter sw = new StringWriter();
HtmlTextWriter writer = new HtmlTextWriter(sw);
img.RenderControl(writer);
writer.Flush();
return sw.ToString();
}
When I replace the DataValue field of the binary image with ImageUrl as below it is working without any problem.
img.ImageUrl = "~/images/noimage.png";
I am using a RadToolTipManager for displaying the full size image of thumb nail image in my form.It is not working when I am loading the image from the database using a binary image control.But it is working perfectly when I am loading image from a folder.
The web service code I have used is given below
public string GetFullSizeImage(object context)
{
cApplicationSettings oAppSettings = new cApplicationSettings();
Telerik.Web.UI.RadBinaryImage img = new RadBinaryImage();
img.DataValue = (byte[])oAppSettings.GetDefaultPhoto(1).Rows[0][0];//This function will return the image from my table
StringWriter sw = new StringWriter();
HtmlTextWriter writer = new HtmlTextWriter(sw);
img.RenderControl(writer);
writer.Flush();
return sw.ToString();
}
When I replace the DataValue field of the binary image with ImageUrl as below it is working without any problem.
img.ImageUrl = "~/images/noimage.png";