HI Sogorka,
If I understand your question correct,here is the link to convert bitmap image to byte array.
Where as in the below link it converts and save it in database.But you need just conversion part.
Try that alone if you want.
And here is the
link[
^]
Hope this helps you a bit.
Thanks,
Rk