Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Saving File to Blob Field: Doesn't it take a byte[ ]?

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
I'm trying to save an uploaded file from a C# asp.net page into a Blob field in an Oracle table.

I'm putting the file into a byte array and passing that as the parameter value, but when I execute the Oracle command object (using the System.Data.OracleClient namespace), it throws an error saying

"Cannot bind type System.Byte[] as Blob"

So what should the datatype be when putting data into a blob field then?

Thanks,

J

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top