使用Silverlight在数据库中存储字节数组 [英] Storing byte array in database with silverlight

查看:72
本文介绍了使用Silverlight在数据库中存储字节数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
在我的应用程序中,我将一些对象序列化为字节数组,将字节数组序列化为字符串,并将其存储到数据库中.

现在要优化相同的事情,我想将字节数组存储到数据库,因此我想使用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 .. :)

推荐答案

好吧,您是否尝试过此结果 [
Well, did you try google[^]?

This result[^] has info on varbinary.


这篇关于使用Silverlight在数据库中存储字节数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆