C# Programming
09-25-2009, 12:11 AM
Hi, I am running this code:
string fullFilename = "\\\\server\\share\\DL_JP_462153474_461535959_attest.JPG.pdf";
byte[] bytes = File.ReadAllBytes(fullFilename);
and get this exception:
FileNotFoundException
"Could not find file '\\\\server\\share\\DL_JP_462153474_461535959_attest.JPG.pdf'."
The only problem is that the file does actually exist! Also, it works on files with shorter filenames in the same folder. For example:
\\\\server\\share\\DL_JP_448856461_461530268_462153469.pdf
Does anyone know what this is all about? http://www.barakasoft.com/script/Forums/Images/smiley_confused.gif
string fullFilename = "\\\\server\\share\\DL_JP_462153474_461535959_attest.JPG.pdf";
byte[] bytes = File.ReadAllBytes(fullFilename);
and get this exception:
FileNotFoundException
"Could not find file '\\\\server\\share\\DL_JP_462153474_461535959_attest.JPG.pdf'."
The only problem is that the file does actually exist! Also, it works on files with shorter filenames in the same folder. For example:
\\\\server\\share\\DL_JP_448856461_461530268_462153469.pdf
Does anyone know what this is all about? http://www.barakasoft.com/script/Forums/Images/smiley_confused.gif