Используйте объект BinaryReader возвратить массив байтов из потока как:
byte[] fileData = null;
using (var binaryReader = new BinaryReader(Request.Files[0].InputStream))
{
fileData = binaryReader.ReadBytes(Request.Files[0].ContentLength);
}
Well, I found the answer:
:help -X
shows that Vim tries to connect to the X11 server on startup to get clipboard functionality and other stuff, which can lead to a "long startup time when running Vim in a terminal emulator and the connection to the X server is slow"
There are three ways to resolve this issue:
vim -X
" disables this X11 communicationunset DISPLAY
" also disables the X11 communication+X11
" feature, this communication will not take placeI went for "unset DISPLAY
" since I've been getting other strange error messages, and now vim starts all but instantly. I also tested the -X parameter, which resolved the problem as well (even with the DISPLAY parameter still set).