Solved

base64 Image - HTTP Error 414. The request URL is too long.

Posted on 2016-10-13
4
509 Views
Last Modified: 2016-10-17
I have developed a mobile application that connects to a web service to insert data into my SQL database. I am attaching images using the device's camera, and I convert this image into a base64 as a parameter inside the URL. I have been trying to send it to my web service, but I get this error:

HTTP Error 414. The request URL is too long.

The URL is approximately 22000 characters long. I am using post. I already maxed the web.config maxAllowedContentLength and maxUrl and all those.

I am also using angularjs and ionic.
0
Comment
Question by:gianfranco000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 125 total points
ID: 41842858
If you are using POST properly, the data is not visible in the URL.  ??
0
 
LVL 28

Assisted Solution

by:Dr. Klahn
Dr. Klahn earned 125 total points
ID: 41842903
The URL is approximately 22000 characters long.

That is far too long for a URL.  imo, a URL should be less than 1000 characters.  URLs were not intended to be used for data transfer.

Suggest:  Pass the data by HTTP in a page body or by FTP/SFTP instead.
0
 
LVL 27

Expert Comment

by:BigRat
ID: 41844020
I think gianfranco, you're going to have to post your code.
0
 
LVL 58

Accepted Solution

by:
Julian Hansen earned 250 total points
ID: 41844021
GET (URL parameters) has a length limit - you should not exceed 2000 characters for it to have any reasonable chance of working in all browsers. Remember the URL is measured by the entire length including protocol string and domain - not just the payload after the ? - not that this makes much difference in your case.

If you are sending a lot of data you should POST them instead preferably using multipart boundaries.
1

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question