Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic load Java diagram files? (Read 285 times)
KrzysztofM
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Nov 21st, 2023
load Java diagram files?
Nov 24th, 2023 at 12:03pm
Print Post  
Hi team,

We are looking into building a web viewer companion for our desktop application. Our users will have a bunch of files returned by JDiagram.saveTo method - is there a way to load these into MindFusion JavaScript module?

Thanks!
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3156
Joined: Oct 19th, 2005
Re: load Java diagram files?
Reply #1 - Nov 24th, 2023 at 2:33pm
Print Post  
Hi,

These are based on Java's object graph binary serialization, and unfortunately cannot be loaded in the JavaScript diagram. You should be able to load XML or JSON files though. Maybe add an "Export to Web" command that would save current diagram to one of these formats (e.g. by calling saveToXml), or create a tool to convert all user's files in a batch.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3156
Joined: Oct 19th, 2005
Re: load Java diagram files?
Reply #2 - Nov 24th, 2023 at 2:41pm
Print Post  
... or possibly if server side is in Java, it could create a Diagram instance and convert submitted files on the fly to return XML / JSON to the client side.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint