Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Can I store an ArcObject inside a BLOB or XML field?

I am saving shape file in database and now i want the symbology selected for the feature layer also get stored in database. I am facing an issue I cannot serialize IStyleGallery, and if its not serialized than how can i store that in database. Anyone got any good solution?

share|improve this question

marked as duplicate by blah238, Get Spatial, iant, Aragon, R.K. Nov 11 '12 at 14:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Just to clear things up, IStyleGallery has nothing to do with the symbology (feature renderer) of a particular feature layer. Additionally, interfaces cannot be serialized, only class instances (objects), and in ArcObjects, typically only those that implement IPersistStream or IXMLSerialize. You might also consider simply storing a layer file, if you are also storing shapefiles wholesale.

share|improve this answer
Thankyou for your response, Do you have any better approach? I want to load feature layer from the database. I have stored shape file (.shp, .prj, .shx ...) in database. While uploading shape files i took symbology but how to store the symbology data in database and again reload and apply it to the layer? – AndroidLearner Oct 18 '12 at 8:29
Since this question already has a couple of votes to be closed I would suggest creating a new question for that, and don't forget to add all the necessary details such as what database, what the server and client software, platforms and versions are, etc. Basically fully explain your situation so that people aren't guessing about what you are trying to accomplish and with what tools. Some good tips for asking a great question can be found here: – blah238 Oct 18 '12 at 17:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.