I want to save image to database, I have the base 64 string of image. But when I send it to server, getting url is too long error. Let me know if there is any solution please..
you probably send it with get method , as you maybe know max allowed length of a url is 2000. you should send it within a json via post method instead
Mark
There is indeed a low limit on GET uploads. To solve that, don't use GET. See this stackoverflow question .
Servers may also impose an upload limit, which is usually higher by default (several MBs or more). If that's the problem, you need to check your server configuration and increase the limit, or tell us which server software you use.
EDIT Since your error specifically says url, it's probably not a server configuration issue. But you may run into that later if files get very large.