Have you ever needed to automatically fill out PDF forms with preset data using a Java application? In this post, we'll explore how to achieve this using the iText 5 library. iText is a popular Java library for creating and manipulating PDF documents, including form filling. We'll walk you through
Are you a developer looking to seamlessly exchange files between your Spring Boot application and an sFTP server? Whether it's pushing files from your app to the server or pulling files from the server to your app, this post will guide you through the process. In this tutorial, we'll cover
When an LDAP client is accessing a server across a slow connection, or if the client suspects that the result set from a given query may be very large, the client should be able to retrieve a result set in small pieces. The Simple Paged Result extended control allows this
The answer is to use an embedded ldap server. spring-ldap-test bring an embedded ldap server based on ApacheDS or UnboundID. In this post, I will demo how I use UnboundID and spring-ldap-test to do testing against an embedded LDAP server. The UnboundID LDAP SDK for Java is a fast, powerful,
if you are familiar with OAuth 2.0, you should know how to make the request to the token endpoint with client id, client secret, scope and grant type. Azure Active Directory (Azure AD) supports two types of authentication for service principals: password-based authentication (app secret) and certificate-based authentication. While
my 2 cents understanding about Mono, Flux and its usages. Mono is a single object publisher Mono (reactor-core 3.5.3) Flux is an array objects publisher Flux (reactor-core 3.5.3) use map to transform for any sync operations use flatMap to transform for any async operations use Mono.
Let's assume you have a backend api and it accept MultipartFile as the request body. How can the client send a MultipartFile object in its body if client only has the bytes rather than a Resource? implement MultipartFile interface A representation of an uploaded file received in a multipart request.
Default HttpMessageReader for parsing "multipart/form-data" requests to a stream of Parts. In default, non-streaming mode, this message reader stores the contents of parts smaller than maxInMemorySize in memory, and parts larger than that to a temporary file in fileStorageDirectory. This reader can be provided to MultipartHttpMessageReader in order to
use PartEvent for Reactive Stack To stream multipart data sequentially, you can provide multipart content through PartEvent objects. Form fields can be created via FormPartEvent::create. File uploads can be created via FilePartEvent::create. You can concatenate the streams returned from methods via Flux::concat, and create a request for
Prepare the body of a multipart request, resulting in a MultiValueMap
. Parts may be concrete values or via asynchronous types such as Reactor Mono, Flux, and others registered in the ReactiveAdapterRegistry.
This builder is intended for use with the reactive WebClient. For multipart requests with the RestTemplate, simply