How are you saving the documents and to where?

Signature
Carsten Thomsen
Enterprise Development with VS .NET, UML, AND MSF
http://www.apress.com/book/bookDisplay.html?bID=105
Communities - http://community.integratedsolutions.dk
> Hi
>
[quoted text clipped - 4 lines]
>
> Any clues or suggestions will be highly appreciated.
wdewebserver - 30 Sep 2005 09:51 GMT
I am saving the document to a Oracle database using the following code:
using(FileStream fileStream = new FileStream(docPath, FileMode.Open,
FileAccess.Read))
{
byte[] docData = new byte[fileStream.Length];
fileStream.Read(docData, 0, Convert.ToInt32(fileStream.Length));
CSDocumentsDataset.CS_DOCUMENTSRow docRow =
docDataset.CS_DOCUMENTS.NewCS_DOCUMENTSRow();
docRow.APPLICATION_ID = appId;
docRow.DOC_TYPE_ID = docTypeId;
docRow.DOCUMENT = docData;
docRow.CREATED = DateTime.Now.Date;
docRow.CREATED_BY = CS_EMPLOYEE_ID.ToString();
docDataset.CS_DOCUMENTS.AddCS_DOCUMENTSRow(docRow);
}
TIA
> How are you saving the documents and to where?
>
[quoted text clipped - 6 lines]
> >
> > Any clues or suggestions will be highly appreciated.