Solved

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

Posted on 2016-10-13
4
359 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 27

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 57

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

Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Node.js 11 82
Health check of winows and webservces 5 52
How to send a javascript array via AJAX (jquery)? 3 43
Check for Numeric Phone Field 14 48
You have this traditional web application that refreshes the whole page each time you navigate and you think it's a good time to convert it to a Single-Page approach. What should you know in advance? Read on, I'll guide you through it.
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

751 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