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

2

15

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 / service 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.

Exhaustion answered 10/7, 2011 at 2:56 Comment(0)
D
2

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."

Demography answered 13/7, 2015 at 2:42 Comment(0)
G
1

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

Gnome answered 15/12, 2016 at 17:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.