Questions tagged [multipartfile]

127 questions
0
votes
0 answers

how to update the data along with the multipart file

I have created a form that has 2 file uploads and a few text content, it successfully uploads data in DB, when I'm trying to re-edit/update the same form. Either I'm getting bad request error if I use Multipart along with entity class. If I use…
Sirisha R
  • 1
  • 1
0
votes
2 answers

Getting 503 exception when sending large file as body in post request

Below is my rest endpoint and code. I am trying to upload a large file by using Multipart, but when I am attaching a large file (>100MB)in postman I am getting 503 error and request is not coming to my server. @PostMapping("load/largefile") …
0
votes
0 answers

S3 trigger to perform a file conversion for a multi-part file type

I am working on converting shapefiles to geojson. Shapefiles are composed of at least 3 required files and as many as 8 separate files all residing in a folder. To convert to geojson you need all the constituent parts. Right now I have a batch…
Zack
  • 151
  • 12
0
votes
0 answers

how to send image and data at once in a postman

I want to send the user info with an image at once during user's registration because I want to use the url of the image sent by the user to save it as the user's profile image. I have tried to send the image as a file in form-data while I send…
Ukeme Elijah
  • 157
  • 3
  • 13
0
votes
1 answer

uploading An Image to Database using MultiPartFile in Flutter

I want to upload an image that I have already retrieved from the database(product table) to the cart table. The issue is, I can't use the .path with the MultipartFile("file", image.path); I am getting an error if I try using .path with my image…
0
votes
1 answer

One additional duplicate file gets uploaded

I have my FileUpload Controller like this: @PostMapping("/uploadFile") public AppUserDocumentUploadResponse uploadFile(@RequestParam("file") MultipartFile file) { AppUserDocument dbFile = appUserDocumentStorageService.storeFile(file); …
Ajay Kumar
  • 2,906
  • 3
  • 23
  • 46
0
votes
0 answers

Executor Service with Multipartfile problem in Springboot

I want to forward a list of Multipart File from service1 to service2. It looks like below: Client -> Service1 -> Service2 In Service1: I use Executor Service to send the files @RestController @RequestMapping("service1") public class TestController…
0
votes
0 answers

How to send an array of MultipartFile from Angular to Spring Boot

The issue is that my data structure is not the same in Spring Boot compared to the data in angular. I am probably just missing something silly. Thanks in advance for the help. Angular Data to Send My angular service method looks like…
0
votes
1 answer

MultipartFile with additional properties from Angular to Spring Boot

I have the following spring-boot function that works and is able to read MultipartFiles that is sent from Angular front-end code. @PostMapping(value = "/upload") @Operation(summary = "Upload Files") public ResponseEntity>>…
ericute
  • 144
  • 1
  • 2
  • 15
0
votes
0 answers

Compress BufferedImage from URL

The only way I could figure out how to download image from URL, then upload it to storage, is with the code below. I cannot figure out how to compress image. There are some images with size of 2MB, I want to reduce them to 300-400 KB. int lastIndex…
shukurov23
  • 23
  • 3
0
votes
0 answers

How to create a multipart.File in Golang

How to create a multipart.File in Golang for testing a function with the multipart.File as a parameter. Golang code to create a multipart.File by locally loading a file.
0
votes
0 answers

How to read a Multipartfile and return a Workbook?

I have a Multipartfile and I want to get the Workbook of it. I use the following code for the same purpose but with the File instead of Multipartfile. Workbook wb = StreamingReader.builder().rowCachesize(200).bufferSize(4096).open(file); // file is…
C Puneeth
  • 61
  • 10
0
votes
2 answers

File has been moved, can not be read again (Spring mvc)

I am using spring MVC where through API I am uploading zip file using MultipartFile. In backend I have to convert uploaded zip file into InputStream for further processing. But my code is giving error intermittently " File has been moved, can not be…
0
votes
0 answers

MultipartFile data is getting exception on TokenAuthenticationFilter's doFIlter when response an API

When I send the file in the form of data, the API gets the data and can save the data but when it back the response it gets an exception. com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class…
0
votes
0 answers

OpenFeign client with MultipartFile -

Here is my application. @SpringBootApplication @EnableFeignClients public class PostLabApplication { public static void main(String[] args) { SpringApplication.run(PostLabApplication.class, args); } @Data public static…
tweetysat
  • 2,187
  • 14
  • 38
  • 75
1 2 3
8 9