R
Rich P
This is just for exercise purpose, but I want to read the binary image
data contained in an resx file and display this in a Picturebox. I have
been searching the net and have some routines which read binary data to
a byte array - execpt it is mostly from a binary datafield in a DB.
How can I read the data like the following into a byte array and display
in a picture box? This data is a picture of a green forward arrow.
<data name="tsbNavForward.Image" type="System.Drawing.Bitmap,
System.Drawing"
mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1B
AACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAA
ARNJREFUOE9jYBgFJIWA/3TX3aH1oWwkaUJW7Nnv+N2pw/o2hgElxzP+g3Dh4dT/ufsS/2fs
iP2ftDHif8zK4P9hC33/+890/+850fF/0uKo/zFzQ/+blOtfRDEEpHndraX/V99Y9H/5tXn/
F1+Z9X/+pWn/Z52f/H/qmb7/E051/u8+3vq//Wjj/6ZDtf8DJnr918hUPgk3BGTzyusL/i+9
Ouf/wssz/s+9MOX/jHMT/k8+3f2/72T7/85jTf9bDtf9bzhY9b9mX9l/rx7X/yqJCkfgBuBz
NtDP/60bTP+7dtj/j1sY+d+z2+W/UpLieZIDUrdQw0IzU/W7SqLcTZI1wzSoJCnu0ArVIj8a
ybZ5cGsEANSBlPv0ZW/CAAAAAElFTkSuQmCC
</value>
</data>
How can I read this into a byte array? Do I just read the string
between the <value></value> tags into a string object and then loop
through this string a char at a time and manuary fill a byte array?
What is the correct way to achieve my desired goal?
Thanks,
Rich
data contained in an resx file and display this in a Picturebox. I have
been searching the net and have some routines which read binary data to
a byte array - execpt it is mostly from a binary datafield in a DB.
How can I read the data like the following into a byte array and display
in a picture box? This data is a picture of a green forward arrow.
<data name="tsbNavForward.Image" type="System.Drawing.Bitmap,
System.Drawing"
mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1B
AACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAA
ARNJREFUOE9jYBgFJIWA/3TX3aH1oWwkaUJW7Nnv+N2pw/o2hgElxzP+g3Dh4dT/ufsS/2fs
iP2ftDHif8zK4P9hC33/+890/+850fF/0uKo/zFzQ/+blOtfRDEEpHndraX/V99Y9H/5tXn/
F1+Z9X/+pWn/Z52f/H/qmb7/E051/u8+3vq//Wjj/6ZDtf8DJnr918hUPgk3BGTzyusL/i+9
Ouf/wssz/s+9MOX/jHMT/k8+3f2/72T7/85jTf9bDtf9bzhY9b9mX9l/rx7X/yqJCkfgBuBz
NtDP/60bTP+7dtj/j1sY+d+z2+W/UpLieZIDUrdQw0IzU/W7SqLcTZI1wzSoJCnu0ArVIj8a
ybZ5cGsEANSBlPv0ZW/CAAAAAElFTkSuQmCC
</value>
</data>
How can I read this into a byte array? Do I just read the string
between the <value></value> tags into a string object and then loop
through this string a char at a time and manuary fill a byte array?
What is the correct way to achieve my desired goal?
Thanks,
Rich