问题描述
大家好,
在我的应用程序中,我将一些对象序列化为字节数组,将字节数组序列化为字符串,并将其存储到数据库中.
现在要优化相同的事情,我想将字节数组存储到数据库,因此我想使用SQL VarBinary数据类型,并且需要从数据库中存储和检索它.
尽管我不知道VarBinary数据类型想要确定其局限性,所以将来我不需要受苦,也不需要将我的所有代码和数据库更改还原为以字符串形式存储..
请为我建议实现相同目标的正确方法..也请让我知道除此
之外的其他更好的方法
Yog ..:)
Hello All,
In my application i am serializing few objects to byte array and byte array to strings and storing it to the database.
Now to optimize the same things i want to store the byte array to the database, so i want to use SQL VarBinary data type and need to store and retrieve it from the database.
Though i am not aware of the VarBinary data type wants to make sure its limitations, so that in future i do not need to suffer and need to revert back all my code and database changes to storing as a string ..
Please suggest me the right way to achieve the same .. also let me know any better way available other than this
Yog .. :)
推荐答案
这篇关于使用Silverlight在数据库中存储字节数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!