Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing binary data into database
Message
From
12/04/2016 12:22:54
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01634652
Message ID:
01634707
Views:
31
This message has been marked as a message which has helped to the initial question of the thread.
>>I'm not going to dig in that code
>>
>>(1) Is the field binary in the database ? and how is it stored
>>
>>(2) If yes, you have to convert it to a byte[] array and maybe convert the \x?? into one byte at a time
>
>I have another quick question. How should I access that column?
>
>Say, I have samples of
>
>table.Rows[0].Field<decimal>("fieldName")
>
>But what should it be for varbinary(max) column?
table.Rows[0].Field<byte[]>("fieldName")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform