-3

I have that kind of strings inside my adress bar:

enter image description here

Generally that chars are from UTF-8.

Is this possible to compress that kind of string to a smaller form? For example, it could be in the form of approximately 1-2 lines.

I mean compress it in controller Spring, and uncompress in JavaScript.
Anyone have some idea?

Ndubuisi Jr
  • 461
  • 6
  • 13
Brarord
  • 611
  • 5
  • 18
  • 3
    There is a lot of repetition there, so yes, it could be compressed significantly. But data that large probably shouldn't be in a URL to begin with – CertainPerformance Feb 04 '20 at 07:26
  • Also why do these have to be part of the url? – Jonas Wilms Feb 04 '20 at 07:27
  • Does this answer your question? [How to compress a String in Java?](https://stackoverflow.com/questions/3649485/how-to-compress-a-string-in-java) – behzad Feb 04 '20 at 07:28
  • Well this is parametr sended from Spring controller to JavaScript. I used model.addAtribute. I just don't know other way to do it : – Brarord Feb 04 '20 at 07:28

1 Answers1

0

Your URL is very very long. If you want send this bigger data, you can do it on body of request, why are you using the URL?