|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Icon problemHi
We are storing Icons (.ico) files in our SQL Server Application as type Image. We have a web service call that returns these through a DataSet and we write the DataSet to disk using the WriteXML Method on the DataSet object. We persist them locally for performance issues. When our application loads it checks a modified date on the table in the DB and determines if it needs to load them or not. If not, it loads them from the local disk into an ImageList that the application uses. Our issue is that our icons are not clean anymore when we do this on certain areas of our application – some areas they seem to be fine. I’m not sure if something is happening to the binary stream in the XML or what, but we need some help to get our icons looking like they should. Thanks Ravi,
When you say icons don't look clean - I assume the picture gets distorted somehow, or some noise appears on it randomly. More than certain - this has to do with XML and it's inability to hold everything. Instead use your own custom dataobject, and store the icon as a bytearray. You might need to deploy that dll to the client that uses the webservice, but hey - thats not such a big deal. Also, try and see if you can use remoting instead of webservice. - Sahil Malik http://dotnetjunkies.com/weblog/sahilmalik Show quote "Ravi Sundari" <RaviSund***@discussions.microsoft.com> wrote in message news:9C8657FB-CB31-41B5-BBCB-B1E1C8C71418@microsoft.com... > Hi > We are storing Icons (.ico) files in our SQL Server Application as type > Image. We have a web service call that returns these through a DataSet and we > write the DataSet to disk using the WriteXML Method on the DataSet object. We > persist them locally for performance issues. When our application loads it > checks a modified date on the table in the DB and determines if it needs to > load them or not. If not, it loads them from the local disk into an ImageList > that the application uses. > Our issue is that our icons are not clean anymore when we do this on certain > areas of our application - some areas they seem to be fine. I'm not sure if > something is happening to the binary stream in the XML or what, but we need > some help to get our icons looking like they should. > Thanks > |
|||||||||||||||||||||||