开发者

Is there a URL shortener that works with really long data URIs? [closed]

开发者 https://www.devze.com 2023-03-18 08:28 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 3 years ago.

Improve this question

I have an app that generates web-pages as data URIs. These data URIs can be really long. I have a page that has a Data URI that is 103,828 characters long, for instance. Everything about the app works and it's no problem, it's just slightly painful to pass around urls that are 100,000 chars long :P, so I was had the wild idea of trying to use a URL shortener to shorten these URLs.

Seems like someone has written about this: http://softwareas.com/the-url-shortener-as-a-cloud-database . The author mentions character limits for popular url shortener services, and the highest seems to be tinyurl, at about 65,000 chars. Am just wondering if anyone knows of an existing solution / servic开发者_JS百科e that would allow shortening of such long urls (over 100,000 chars)?

Am tempted to implement my own shortener, but would like to avoid it if something exists that would allow for this.


I think one of the main motivations for url shortening services was social networking services (such as Twitter) with message length limits. I expect that you will not likely find such a services suiting your particular desires. The article you referenced in your question was quite interesting. (especially re: TinyURL's large limit.)

Everything about the app works and it's no problem, it's just slightly painful to pass around urls that are 100,000 chars long

I might fall back on that old saying, "If it ain't broke... don't fix it."


Browsers all have limit on the URL length, from what I know IE around 2083 chars, and other like Chrome are similar. Check out StackOverflow answers here:

http://9to.one/gV0XOQ

I would like to suggest you create one of those REST server by yourself, steps: * Pick a Hash algorithm * Create a REST service by using Jersey in Java or any other language you like * Use RIAK database to save your key/long_link

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号