Questions tagged [multipart]

Multipart is content type that allows multiple MIME types to be embedded in a single message.

Commons uses of multipart subtypes include:

References

1904 questions
0
votes
0 answers

How to serialize array in javaScript and append in formdata

I want to serialize array in a javascript and append the serialized value in form data, I have tried but serialize array showing empty, Kindly give a suggestion. var IsolationFO = {}; IsolationFO['tagNumber'] = $('#tagNumberId').val(); …
MurugananthamS
  • 2,395
  • 4
  • 20
  • 49
0
votes
1 answer

How to marshal FilePart of type application/json to a POJO in spring webflux functional endpoint handler?

I receive a multipart request with some parts representing Json files that I need to convert to POJOs, in annotation based controller I could use @RequestPart("person") Person to marshal that part to a Person POJO. with functional endpoints, I can…
0
votes
3 answers

How should I serve ZIPped webpages?

Background: Our software generates reports for customers in the usual suspect formats (HTML, PDF, etc.) and each report can contain charts and other graphics unique to that report. For PDFs everthing is held in one place - the PDF file itself. HTML…
banjollity
  • 4,490
  • 2
  • 29
  • 32
0
votes
1 answer

Not able to upload multiple files using InputStream in rest api

I want to upload multiple files in the rest api using spring. I am able to upload single file using below code @Path("/line-item/cancel") @Produces({"application/xml", "application/json"}) @Consumes({MediaType.MULTIPART_FORM_DATA}) …
Aneesh Goel
  • 47
  • 2
  • 6
0
votes
2 answers

sending multipart/form-data POST API requests in angualr

I'm sending images and other form data through multi-part requests. When I call the api using PostMan the image is successfully adding. But I;m getting an error from back-end when I call the same API using angular code. Component.ts addOffer() { …
ONE_FE
  • 968
  • 3
  • 19
  • 39
0
votes
1 answer

How to send List of integers along with image in retrofit2 using Multipart

I am trying to upload an image using retrofit 2.0., I have few other params to be send with form data which include a List of integers. My request declaration is @Multipart @POST("/api/Add") Call addApi(@Part("Id") RequestBody id, …
Safa
  • 473
  • 5
  • 22
0
votes
0 answers

Retrofit Internal server error when using multipart

in my app I have to send a photo to the server and the server will give a trans_id in the response, but I have an 500 internal server error. I tried with postman and everything is okay. My retrofit interface is: @Headers("Content-Type:…
Erald Developer
  • 359
  • 1
  • 6
  • 16
0
votes
2 answers

HTTPClient MultipartEntity seems to be adding garbage text to StringBody parts

I am trying to use Apache Commons's HttpClient to send a multipart POST request with a binary file and a couple of string parameters. However, it seems that somewhere along the line, some garbage text is making its way into my string parameters. …
pkaeding
  • 36,513
  • 30
  • 103
  • 141
0
votes
2 answers

Express get picture and send to imgur

I'm using express with nodejs, and i would like to use imgur to host pictures. I have my access token, and I need to request this endpoint : "https://api.imgur.com/3/upload" with the header : headers: {'Authorization': "bearer " +…
nonoom
  • 244
  • 1
  • 3
  • 15
0
votes
1 answer

Spring support for MIME type "multipart/byteranges"

I have following controller API: @GetMapping(produces = "multipart/byteranges") public ResponseEntity getMultipartContent() { MultipartBodyBuilder builder = new MultipartBodyBuilder(); builder.part("name",…
Omkar Shetkar
  • 3,488
  • 5
  • 35
  • 50
0
votes
1 answer

Why use multipart to upload an image?

I am currently developing an app in Kotlin that uses the FACE API of Azure. To identify faces on images I need to send the image to the server. I use Retrofit 2.7.0 for the REST requests. Whenever I google about sending an image with retrofit, I…
findusl
  • 2,454
  • 8
  • 32
  • 51
0
votes
1 answer

Create PDF from Request Stream Bytes

So here is my dilemma. I need to handle POST requests coming from a customer server. The request body is of a "multipart/mixed" type. I am having to use standard ASP.NET so I'm having to brute force what Core makes alot easier I know. I have it…
Wanabrutbeer
  • 676
  • 6
  • 11
0
votes
0 answers

Golang: multipart POST multipart request with io.Pipe - failing to get it right

I am using GO multipart with io to upload a file to a local server and this function fails me every time. (This is just form request part) func httpreq(uri string, params map[string]interface{}, fieldname, filename string, filebuf []byte)…
manpatha
  • 489
  • 4
  • 11
0
votes
1 answer

Receiving multipart form-data json parameter null

I am trying to receive a multipart request from Postman containg 3 parameters: An int A file A Json I receive in the controller both the file and the integer fine, but the json has all the fields as null. What could be wrong ? Json …
Bercovici Adrian
  • 8,794
  • 17
  • 73
  • 152
0
votes
0 answers

Call one spring boot endpoint from another for handling multipart/mixed requests

I have a small spring boot application for handling multipart/mixed requests. The multipart/mixed request can contain a list of requests my service handles. So how do I call my endpoints from within the multipart/mixed endpoint ? Also, I need to…