c# - Inserting byte array vs Encoded text in SQL Server -


I get a stream of BSN data in my WebApi. I need to store the database in the stream. Should be stored in or encoded in UTF 8 encoding; So save?

I am using the entity framework for data access. If you suggest saving in binary, then what data type is binary or byte

BSON binary is ideally designed by varbinary (...) column ( varbinary (max) is most convenient). Do not consider UTF-8: It is wrong to use the U.F.F. 8; This encoding is behind and if you want in a character-based field ( [n] [var] char (...) ) Store it, then use Base-64.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -