I have an app with a version for iOS and a version for android. The app sends a image (jpeg in this case) from the gallery or camera to a server using a multipart upload.
The images start life identical in size, resolution and file size, and when I…
I have trying to posting a pdf file to rest api and I get a 500 internal server error. The code works for a word doc and its also works in debug mode in a visual studio 2015 but fails in production. At this point I am not sure if its a code issue.…
I have a post operation which takes multipartfile as request, i would like to store it on the FTP later.
But for now I have just the method setup and when trying to invoke from postman, it gives me an error response HTTP 415.
This is what I…
I am trying to upload a file (and additional fields) using single REST POST request. This request has to be processed asynchronous and form has to be submitted using multipart-form content type (because beside file I am sending few other text fields…
I want call controller method with Multipart file and json as parameters for it.
Here is code how I've called with JSON only(successfully):
@CrossOrigin
@RequestMapping(
value = "/login",
method = POST,
produces =…
The multipart upload of an image worked fine with AFNetwrking 1.0 and I need to upgrade to 3.0. However, the request parameters and the body disappear. It seems to be in AFURLRequestSerialization.m the statement:
[self.request…
I need to make a request which is in nested multipart data. I need to send image in multi part form data and other details should also be in multipart.
My Json request is as follow:
{
"emailId": "vision.jav@avenger.com",
"phoneNumber":…
I'm facing trouble while uploading large files to the server for my project. I have modified maxPostSize and maxHttpHeaderSize in server.xml as suggested in this article but it's showing java.lang.OutOfMemoryError. What to do?
I've searched for hours and tried everything to fix this code. I've been working with the example below and after updating appropriate variables this works fine through till the end of processing the first email. It seems to pause indefinitely. I…
I have a Microsoft ASP.net Web API project (using .net Framework 4.61) which has API methods which are supposed to accept POST requests where the Post contains MIME multi part messages.
The .net Framework has the methods…
I'm trying to make a PUTrequest using retrofit. All parameters sent except the data inside the Classic Java object. it contains a and other data but the backend not adding any of its parameters. I tried adding the HashMap as an individual part…
Rails will helpfully send multipart email if there are multiple template types present (e.g. .txt and .html files for the same mailer action).
However, what if I want to do this without templates? Normally we specify body and content_type as…
I've used this excellent answer and netcat to see what comes through when a form is submitted. That example works great, however, on my own form something is preventing all of my form data from going through. After my first six inputs come through,…