2

I want to send (INSERT) a doc file, e.g resume into a table of my database. What is the code required to perform this in asp.net 3.5?

1 Answer 1

1

Convert the posted file into a Byte Stream.

byte[] myByte = new byte[fupUpload.PostedFile.ContentLength];
Stream imgStream = fupUpload.PostedFile.InputStream;
imgStream.Read(myByte, 0, fupUpload.PostedFile.ContentLength);

Then save the myByte stream into the DB using the ADO.NET Model, that you are using in your application.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.