I\'m using an image component that has a FromBinary method. Wondering how do I convert my input stream into a byte array
HttpPostedFile file = context.Reques
in your question, both buffer and byteArray seem to be byte[]. So:
ImageElement image = ImageElement.FromBinary(buffer);