Posts

How to display full screen animated gif for your react native app?

Image
I would like to show a fullscreen animated gif while my react native app got lunched and preparing its data. so how can we do that within react native? import { Image } from "react-native"; A React component for displaying different types of images, including network images, static resources, temporary local images, and images from local disk, such as the camera roll. resizeMode Determines how to resize the image when the frame doesn't match the raw image dimensions. 'cover': Scale the im  

Reactive Mono, Flux, map, flatMap, filter, reduce and zip

Image
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.zip to aggregate multiple monos into a new Mono Aggregate given monos into a new Mono that will be fulfilled when all of the given Monos have produced an item, aggregating their values according to the pr  

How to transform byte array to a MultipartFile resource in Java?

Image
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. The file contents are either stored in memory or temporarily on disk. In either case, the user is responsible for copying file contents to a session-level or persistent store as and if desired. T  

How to parse Multiparts response body from client side in Spring Boot?

Image
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 aggregate all parts into a Map. use toEntityFlux and DefaultPartHttpMessageReader for Reactive stack Variant of toEntityFlux(Class) with a Bo