How can I convert hexadecimal stream to a Image?
-
Hi, we have Image stream with hexadecimal values. 0xFFD8FFE000104A46494600010101 Now we need to convert it to asp.net image (System.Web.UI.WebControls.Image) ? can any one assit for that?
-
Hi, we have Image stream with hexadecimal values. 0xFFD8FFE000104A46494600010101 Now we need to convert it to asp.net image (System.Web.UI.WebControls.Image) ? can any one assit for that?
-
pubududilena wrote:
we have Image stream with hexadecimal values
Is it a hexadecimal string or a byte array?
*jaans
thanks for reply. It is a hexadecimal string. It is comming with xml files. So we need to convert hexadecimal string to a Image to show on the asp.net web page.
-
thanks for reply. It is a hexadecimal string. It is comming with xml files. So we need to convert hexadecimal string to a Image to show on the asp.net web page.
You cant convert it to
asp:Image
, but you can display it to the user 1. Convert the hex string to a byte array by the help ofHexEncoding
class available in this article[^] 2. Display this data either usingBinaryWrite
method ofResponse
class or HttpHandlers[^]*jaans