Hi,
Hi, you can use "Request.Fi les[0].InputStream" to read the file content
into byte array and update the data set.
refer to :
support.microso ft.com/default.aspx?kb id=308042
Dim ds As DataSet = New DataSet()
pAdapt.MissingS chemaAction = MissingSchemaAc tion.AddWithKey
pAdapt.Fill(ds, "UploadTabl e")
Dim row As DataRow
row = ds.Tables("Uplo adTable").NewRo w()
byte[] arrByte = new byte[Request.Files[0].InputStream.Le ngth] ;
Request.Files[0].InputStream.Re ad(arrByte,0,
(int)Request.Fi les[0].InputStream.Le ngth);
row(0) = Request.Files[0].FileName
row(1) = arrByte
ds.Tables("Uplo adTable").Rows. Add(row)
pAdapt.Update(d s, "UploadTabl e")
pConn.Close()
Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!