In addition to what Richard has - rightly - said, there are other problems with your code.
Start by checking your DB and how you entered the icon data to it:
Why do I get a "Parameter is not valid." exception when I read an image from my database?[
^]
Then fix your whole password system ... Never store passwords in clear text - it is a major security risk. There is some information on how to do it here:
Password Storage: How to do it.[
^]
And remember: if you have any European Union users then GDPR applies and that means you need to handle passwords as sensitive data and store them in a safe and secure manner. Text is neither of those and the fines can be .... um ... outstanding. In December 2018 a German company received a relatively low fine of €20,000 for just that.
Quote:
See my updates question where I shows a line of code I uses to send the Icon
Image bitMapIcon = getIcon.ToBitmap();
...
command.Parameters["@CUST_FILE"].Value = bitMapIcon;
That won't work, and is likely your problem. What that sends to SQL is not the image data, it's the name of the bitmap class as a string:
"System.Drawing.Bitmap"
See the link above!