Click here to Skip to main content
15,905,614 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi Frnds,
I Have Table contains columns as emp_id int,emp_name varchar(30),emp_image image...For this table i have to save details from C# page.I have converted my image to byte[].
We have dbtypes as follows DbType.Object , DbType.Decimal,DbType.Binary,DbType.Int64,DbType.byte etc...In this how can send image byte[] to database(what dbtype i have to use).
VB
database.AddInParameter(dbCommand,
"@inLogo", DbType.Binary, logo);
Posted

1 solution

 
Share this answer
 
Comments
itsureshuk 9-Nov-12 1:26am    
In your link they are used sqldbtype.varbinary ...but i need dbtype.(some types)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900