Hello,
I am new to Telerik controls and here is my first issue.
There is a WSI service that provides a JPG image as byte[] array. The image can be easily saved to the file as following:
Now, i am trying to use RadBinaryImage control and its DataValue property:
The result is rendered as an empty image.
As you see, dimensions of image are correctly set, so there is no problem with byte[] data. Instead there is something wrong with handlers.
I edited web.config file for sharepoint to include
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
in System.webServer - > Handlers.
But this did not help. Any ideas?
I am new to Telerik controls and here is my first issue.
There is a WSI service that provides a JPG image as byte[] array. The image can be easily saved to the file as following:
FileStream fs =
new
FileStream(fullPath, FileMode.Create);
fs.Write(picture_aray, 0, picture.Length);
fs.Flush();
fs.Close();
Now, i am trying to use RadBinaryImage control and its DataValue property:
EmployeePhoto.DataValue =
picture_array;
The result is rendered as an empty image.
<
img
style
=
"height: 340px; width: 344px;"
src
=
"../Telerik.Web.UI.WebResource.axd?imgid=11b68653b19b407494f577727fdb969d&type=rbi"
id
=
"ctl00_m_g_f2e35c4b_5688_4365_852b_d3bfe094880d_ctl00_EmployeePhoto"
>
As you see, dimensions of image are correctly set, so there is no problem with byte[] data. Instead there is something wrong with handlers.
I edited web.config file for sharepoint to include
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
in System.webServer - > Handlers.
But this did not help. Any ideas?