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) {
…
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…
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 =…
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…
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…
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")…
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")
…
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…
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…
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…
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…
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,…
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…
I have the following code
final JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
MimeMessage mimeMessage = mailSender.createMimeMessage();
MimeMessageHelper helper;
try {
helper = new…