Most likely, it's where you stored the image: your code is vulnerable to SQL Injection which implies that yoiu always concatenate strings to form SQL commands. Not only does that give your users the chance to damage or destroy your database, it also means that image storage doesn't work. See here:
Why do I get a "Parameter is not valid." exception when I read an image from my database?[
^]
"Hello Griff thanks for your reply. I receive the {byte[21]}"
Yes...and what does that spell out?
[0] 83 S
[1] 121 y
[2] 115 s
[3] 116 t
[4] 101 e
[5] 109 m
[6] 46 .
[7] 68 D
[8] 114 r
[9] 97 a
[10] 119 w
[11] 105 i
[12] 110 n
[13] 103 g
[14] 46 .
So follow the link, read what it says, and pay attention to the Section: "Before I close..."