Skip to content

Instantly share code, notes, and snippets.

@balvinder294
balvinder294 / post-file.java
Created November 24, 2019 14:27
Sample method for posting a multipart file to rest api with OkHttp
/**********
* Here is a method showing use of OkHttp for posting a multipart form data
*
* Here RPResumeResponseDTO is a custom DTO being used in the project
* For taking file from rest api endpoint we are using as a multipart file parameter
**********/
/**************Steps *******************/
RPResumeResponseDTO postResumeToRPServer(MultipartFile file) throws IOException {
log.debug("Request to post file : {}",file.getOriginalFilename());
@staltz
staltz / introrx.md
Last active May 24, 2025 19:53
The introduction to Reactive Programming you've been missing