Skip to content

Load drawio with files of different formats #12

Answered by marcveens
AngusParsonson asked this question in Q&A
Discussion options

You must be logged in to vote

I just added an example of how to load a .png file, and transform it to the correct format:

https://github.com/marcveens/react-drawio/blob/f154102ec850d1ad1ea7a07479ebf7a483fcda7f/stories/DiagramsEmbed.stories.tsx#L53C1-L66C3

In case of .vsdx files, I don't know how draw.io handles them. There's not much to find online on how to parse those files. In the end, it should be an xml/base64 format one way or the other. I can't seem to parse that file type correctly, so unfortunately I'm not able to help with that.

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AngusParsonson
Comment options

You must be logged in to vote
10 replies
@AngusParsonson
Comment options

@marcveens
Comment options

@marcveens
Comment options

@AngusParsonson
Comment options

@marcveens
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6 on March 10, 2024 00:28.