Question SerializableWeb

Discussion in 'Developer Support' started by Savior, Feb 12, 2016.

  1. I saved a web as a .nav file using the byte array FileWeb#toByteArray() returned.
    This web cannot be loaded by SerializableWeb.deserialize(byte[]).

    Code (Text):
    1. java.lang.RuntimeException: The SerializableWeb being loaded is not supported by the parser.
    2.     at
    3.     at
    4.     at productions.celestial.bots.winegrabber.Wine.onStart(
    5.     at
    6.     at
    @Cloud is that intended?
  2. They use different serialization protocols so it's entirely possible. They are slightly backwards compatible but depending on the features that were being serialized it's likely just incompatible. You can easily convert between the two by loading the old file as a FileWeb, then adding its vertices to a SerializableWeb and reserialize. The new format is more robust and can support features that the old format couldn't.
    Savior likes this.

Share This Page