Save the file type icon in DATABASE or in a XML file or?

Always avoid keeping binary images in databases. Query and covertion are over heads. The best way for this particular option is to keep all your pics as resourcess and keep the resource name saved to the database .. you can do tht by keep a enum of the resource names and parse the (eNUM.

PARSE) names at onrowdatabound as source binding to cell template of a datagrid row. The cell may contain an image as template content.

2 Always avoid keeping binary images in databases. @niladridm: There is nothing inherently wrong with storing BLOB data in a database. If the OP knows what he/she is doing and sets up the database properly then there is a negligible performance hit by storing binary data.

– FreeAsInBeer Mar 21 at 19:25 @FreeAsInBeer that point is from me :P – msfanboy Mar 22 at 18:41 ty, Sir. I always hate it when people say "Don't do 'such and such'..." but don't back it up with anything more than a biased opinion. – FreeAsInBeer Mar 22 at 19:15 the thing is storing is no poblem but when you query a large amoung of blob records and then pass it on to presentation layer thru a service layer tht is accessed by a DA layer.. transition get heavy when the data grws.

And the datagrid of wpf would take longer time to load. Its an opinion that I have tested. If you have anything more to add I wud be more than happy to learn.

– niladridm Mar 23 at 18:55 and Mr. msfanboy I totally agree with u. Its all urs. – niladridm Mar 23 at 18:59.

If you have few file types and a huge number of files, its better that you store the file types as a file_type_master kind of database or XML file and load it once while you use it everywhere. But it holds good when there is a good trade off in terms of loading and usage. Or else you can also do kind of caching.

This is cool... exactly what you suggest I have described in my thread... repatation doesn't get points. – msfanboy Jun 28 at 10:39.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions