Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. The Back Room
  4. Question for the Devs

Question for the Devs

Scheduled Pinned Locked Moved The Back Room
mysqlcollaborationtutorialquestion
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Oakman
    wrote on last edited by
    #1

    Any of you have experience with saving serialized classes to blobs (in MySQL fwtw). I know how to do it, but I am wondering if there are gotchas that just aren't apparent at first look.

    Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin

    C 1 Reply Last reply
    0
    • O Oakman

      Any of you have experience with saving serialized classes to blobs (in MySQL fwtw). I know how to do it, but I am wondering if there are gotchas that just aren't apparent at first look.

      Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The title implies that not most of us are devs ? And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ? I was thinking this morning about the sad state of the site, there was a time when you could never go into a programming forum and see a message that was 10 hours old on the first page. And when something is asked, it's so often clueless, that people have gotten used to shooting down ANYONE who asks anything. Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.

      Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

      O 1 Reply Last reply
      0
      • C Christian Graus

        The title implies that not most of us are devs ? And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ? I was thinking this morning about the sad state of the site, there was a time when you could never go into a programming forum and see a message that was 10 hours old on the first page. And when something is asked, it's so often clueless, that people have gotten used to shooting down ANYONE who asks anything. Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.

        Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

        O Offline
        O Offline
        Oakman
        wrote on last edited by
        #3

        Christian Graus wrote:

        The title implies that not most of us are devs ?

        I'm thinking that some folks may have found their way here as Sys-Admins, or Managers, or folks who were trying to get coleforget.com but were drunk.

        Christian Graus wrote:

        And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ?

        That was part of it, but there was also a question in my mind as to which forum was appropriate, even if I did want to take the chance of being sandwiched between two requests to do someone's homework. I found myself wishing for a forum that would not let you post unless you were gold or silver with articles published. I guess I'm elitist. :sigh:

        Christian Graus wrote:

        Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.

        That's what I was thinking. Of course if you change the objec, you'll have to be able to recognize the old format and write some sort of converter - but as Caesar said as he marched back towards Rome - Hey, Rube, I con cross that bridge when I get to it.

        Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin

        C B 2 Replies Last reply
        0
        • O Oakman

          Christian Graus wrote:

          The title implies that not most of us are devs ?

          I'm thinking that some folks may have found their way here as Sys-Admins, or Managers, or folks who were trying to get coleforget.com but were drunk.

          Christian Graus wrote:

          And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ?

          That was part of it, but there was also a question in my mind as to which forum was appropriate, even if I did want to take the chance of being sandwiched between two requests to do someone's homework. I found myself wishing for a forum that would not let you post unless you were gold or silver with articles published. I guess I'm elitist. :sigh:

          Christian Graus wrote:

          Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.

          That's what I was thinking. Of course if you change the objec, you'll have to be able to recognize the old format and write some sort of converter - but as Caesar said as he marched back towards Rome - Hey, Rube, I con cross that bridge when I get to it.

          Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          If we're talking .NET, my experience is if you add new properties to an object, an old serialised file will load just fine, and set default values for those properties. We've added to our preferences many times, and we just set the right default and it works.

          Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

          O 1 Reply Last reply
          0
          • C Christian Graus

            If we're talking .NET, my experience is if you add new properties to an object, an old serialised file will load just fine, and set default values for those properties. We've added to our preferences many times, and we just set the right default and it works.

            Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

            O Offline
            O Offline
            Oakman
            wrote on last edited by
            #5

            Kewl. Thanks!!! Now I have one more request: I have to work on a project which converts given flat files to XML using the XML serialization method. Can you create a demo project, record it on CD, and send it to me overnight express, tonight?

            Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin

            S 1 Reply Last reply
            0
            • O Oakman

              Christian Graus wrote:

              The title implies that not most of us are devs ?

              I'm thinking that some folks may have found their way here as Sys-Admins, or Managers, or folks who were trying to get coleforget.com but were drunk.

              Christian Graus wrote:

              And, it's interesting to me that you ask here instead of in the programming forums. I assume you expect a more intelligent response in here ?

              That was part of it, but there was also a question in my mind as to which forum was appropriate, even if I did want to take the chance of being sandwiched between two requests to do someone's homework. I found myself wishing for a forum that would not let you post unless you were gold or silver with articles published. I guess I'm elitist. :sigh:

              Christian Graus wrote:

              Once it's serialised, it's just a stream of bytes, which you can store as a blob, there are no gotchas that I can think of.

              That's what I was thinking. Of course if you change the objec, you'll have to be able to recognize the old format and write some sort of converter - but as Caesar said as he marched back towards Rome - Hey, Rube, I con cross that bridge when I get to it.

              Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin

              B Offline
              B Offline
              bulg
              wrote on last edited by
              #6

              Oakman wrote:

              with articles published

              More than 1?

              O 1 Reply Last reply
              0
              • B bulg

                Oakman wrote:

                with articles published

                More than 1?

                O Offline
                O Offline
                Oakman
                wrote on last edited by
                #7

                bulg wrote:

                More than 1?

                Is it important?

                Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin

                1 Reply Last reply
                0
                • O Oakman

                  Kewl. Thanks!!! Now I have one more request: I have to work on a project which converts given flat files to XML using the XML serialization method. Can you create a demo project, record it on CD, and send it to me overnight express, tonight?

                  Jon Smith & Wesson: The original point and click interface Both democrats and republicans are playing for the same team and it's not us. - Chris Austin

                  S Offline
                  S Offline
                  Synaptrik
                  wrote on last edited by
                  #8

                  Its been awhile, working in Linux and C++ now, but I believe that .NET is using reflection and the properties defined to rehydrate. So any data you want to restore has to have a property for it with getters and setters defined. But I could be wrong.

                  This statement is false

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups