How to inflate the deflated plantuml code sent to a plantuml server?

+1 vote
asked Feb 23, 2014 in Wanted features by arwenvaughan (120 points)

At this link (http://plantuml.sourceforge.net/codejavascript.html) there is a method using Javascipt to deflate plantuml text into a compressed string of characters safe to use in a URL...for sending to a plantuml server. It appears to use a custom encode64() method, instead of the method used by the source code that this was derived from (https://github.com/johan/js-deflate/).

This code works great, of course, to deflate, but I am looking to go the other direction and convert the compressed text back into the original uncompressed plantuml text. Can someone please let me know what I would need to do this? I have spent a few hours trying to figure it out and am not getting anywhere.

Many thanks in advance!!!!

 

 

commented Apr 4, 2014 by Fuhrmanator (1,700 points)
Wow, me too! I'm trying some Google Docs integration and really need this to work in JavaScript.
commented Apr 5, 2014 by Fuhrmanator (1,700 points)
commented Apr 6, 2014 by anonymous
Yeah, the plantuml guys gave me the anwser via email. Sorry, I forgot to post it. Feel free to use that link. We are keeping that site going indefinitely.
commented Jan 30, 2019 by anonymous
Ok, so the link is now at https://www.planttext.com/js/jquery-plantuml/rawinflate.min.js?v=13.7 -- it can be found by opening developer tools while browsing planttext.com

2 Answers

0 votes
answered Mar 9, 2014 by msinclair (520 points)
To be sure I understand you.

You want to know how to uncompress an encoded PlantUML diagram using javascript ?

I know the code exists in java but in javascript, I don't know.
0 votes
answered Apr 6, 2014 by anonymous

Yeah, the plantuml guys gave me the anwser via email. Sorry, I forgot to post it. Feel free to use the file below. We are keeping that site going indefinitely.

http://www.planttext.com/javascript/jquery-plantuml/plantuml.js

commented Aug 9, 2017 by anonymous
The link no longer works. Does anyone have the javascript for inflating PlantUML URL's?
commented Sep 17, 2017 by plantuml (294,960 points)
You'll find some information here http://plantuml.com/code-javascript-synchronous
commented Jan 30, 2019 by brettblue (180 points)
That link only explains the compression. Does anyone have the Javascript for the decompression? Thank you!
...