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
1 answer

how to send multi part file from android to rest web service(Spring)?

I want to send Multipart file from android device to rest service which has developed in Spring. Here is my android code.. @Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { …
Sunil T
  • 11
  • 4
0
votes
0 answers

Uploading image from Android to Apache Server using AsyncTask not working on all Android devices

Hello, Stack Overflow Community. Ya'll are my last hope: We have an Android App under development... Users are given the option to upload an image from Cam or locally from Gallery. In both cases, we can see the image preview/thumbnail is getting…
nsdb
  • 130
  • 1
  • 6
0
votes
1 answer

Flutter: send multipart request to node.js server api

I have a Flutter app where users fill a form and add images (upto 5). I want to send this complete data to my node.js server via API. Here is my flutter code: List _imageFileList = new List(); var postUri =…
codeinprogress
  • 3,193
  • 7
  • 43
  • 69
0
votes
0 answers

How do I send multipart data (JSON + octet stream) from the server to the client using Jersey?

There are lots of examples of Jersey code that streams binary data along with some JSON meta information from the client to the server as multipart, but I cannot find ANY examples showing how to do this in the other direction (server to client). Can…
0
votes
1 answer

problem while sending Multipart image, video & param to server

I am using moya and want to send image, video & parameters dictionary of [String : Any] for parameters I am writing *for (key, value) in param { multipartFormData.append(Moya.MultipartFormData(provider: .data((value as…
0
votes
1 answer

Upload image using Retrofit2 (PATCH Request)

I know how to upload an image to server using POST request: // AuthService.kt @Multipart @POST("auth/update") fun updateInfo( @Header("Authorization") token: String, @Part("fullName") fullName: RequestBody, @Part("address")…
Saman Sattari
  • 3,322
  • 6
  • 30
  • 46
0
votes
1 answer

How to send response as a multi-part

I have one API in which I have to send a response which contains one binary, I tried some example from StackOverflow but I did not get any solution. I tried In Jersey @POST @Path("/testmultipart") @Consumes("application/json") …
Ganesh Gudghe
  • 1,327
  • 1
  • 17
  • 41
0
votes
1 answer

Testing upload of zip files in java throws EOFException

I made controller for uploading zip files, and when I tested it through Postman, everything worked as intended. Now I'm trying to create test for this controller, using custom test framework. Part of my controller method for extracting zip: try…
user9458184
0
votes
0 answers

Send Images as Multipart with Volley request

I want to send multipart request so that image can be sent to the server through volley. I want to send two other paramters along with image list but i don't know how to pass images list in volley request params. My code for getting image from…
Aarks
  • 117
  • 9
0
votes
0 answers

MultiPart with memory issue

Upload image is not working. It has a memory issue. When I call the API, my app stops. Then the GC is called multiple times and a TimeOut exception is thrown. I considered compressing the image file with Bitmap.Compress, but, calling compress also…
mel
  • 199
  • 1
  • 10
0
votes
1 answer

how to send multipart data and json data together in one request using curl or postman

I have a case where I have to save json data and upload a file in one request. this is how I am doing in spring public void profile (@RequestBody @Validated @Valid ProfileDTO profileDTO, @RequestPart("file") @Valid MultipartFile…
Anjali
  • 1,623
  • 5
  • 30
  • 50
0
votes
1 answer

Add file in request using AsyncHttp

I'm trying to do a post to an endpoint and set some form params and a file using AsyncHttp. This is the code I have: httpClient.preparePost(url) .addHeader(HttpHeaders.AUTHORIZATION, authorizationToken) .addHeader(HttpHeaders.ACCEPT,…
Manuelarte
  • 1,658
  • 2
  • 28
  • 47
0
votes
1 answer

How to handle multipart/related data in Alamofire?

My backend server multipart/related data for images. How to handle it in my iOS client side by using Alamofire?
Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
0
votes
2 answers

Cant upload multiple files from array with Alamofire

Im trying to upload multiple image and video from library to url. evertying works fine except , response turns only one file. I choose two different image for experiment but response is only for last image in array. here is my upload func.. func…
Bilal Şimşek
  • 5,453
  • 2
  • 19
  • 33
0
votes
0 answers

How to attach multiple inline base64 encode image to the mail?

I have the following code final JavaMailSenderImpl mailSender = new JavaMailSenderImpl(); MimeMessage mimeMessage = mailSender.createMimeMessage(); MimeMessageHelper helper; try { helper = new…
Subhajit Pal
  • 565
  • 1
  • 8
  • 19