You have to release resources used during the first phase of your code, which is saving file into physical space/directory. For example:
fileObjectUsed.dispose();
OR
FileUpload1.dispose();
I would recommend you not to store file into your web server location as this will add extra overhead of saving and deleting files and of-course security problem. You can directly store it(file) into database by converting it to bytes. Check out the link Storing Binary Data to Database using ASP.NET 2.0[^] Observe the code lines...
Dim imageBytes(fileUpload1.PostedFile.InputStream.Length) As Byte
fileUpload1.PostedFile.InputStream.Read(imageBytes, 0, imageBytes.Length)
puranonnet@hotmail.com BCS Technology