As mentioned by
0x01AA* above the following line will not give the name of he file:
string file = @pictureBox1.Image.ToString();
This is clear from the error message which shows the filename as
E:\visual studio projects\Windows form Application tutorials\Dropbox Api Demo\Dropbox Api Demo\bin\Debug\System.Drawing.Bitmap
It is reasonable to assume that you have not called your file
System.Drawing.Bitmap
.
So, you just need to change your code to use the correct name for your file.
*who deserves the credit for this answer.