Cannot implicitly convert 'byte[]' to 'byte'
.net, c#
Solution
You're trying to assign an array of bytes (`byte[]`) to a single byte, hence the error.
Try the following code:
byte[] imgarray = new byte[imglength];
Problem
My given code has an error of type conversion ``` int imglength = FileUpload2.PostedFile.ContentLength; byte imgarray=new byte[imglength]; ```