Display Image From MySQL Using PHP

Blob Data as Image Here I am going to show you an example how you can fetch blob (Binary Long Object) type data from MySQL database and display as image on the web page. Before you display the blob data from MySQL server make sure you had stored the blob data for an image only otherwise it won’t show on…

Save File In MySQL Database Using PHP

Storing File in MySQL Storing file content in database is always a debate and there are certain pros and cons about it. Most of the applications generally store files in a physical location and file metadata are stored in the database. But in certain situation where you find it more beneficial to store files into the database itself. Generally when…

Spring REST API Retryable And Recover

Spring Retryable You might often encounter various errors and failures in the applications as the software world is highly unpredictable with variables ranging from network latency to third-party service downtime. Therefore it is crucial to build a robust application by ensuring fault tolerance and resilience that will help to build overall user experience and stability of the application. Spring framework…

Disable Cut Copy Paste In Angular App

Disabling Cut Copy Paste There may be a situation where you need to disable cut or copy from or paste to an input field in your application. You can restrict users from copying and pasting sensitive information or data that needs to be entered manually in the input field.

External Configuration In Spring Boot Applications

External Configuration Spring Boot framework allows application developers to run the same Spring Boot application in different environments by making use of its feature of external configuration. The configuration in Spring Boot application uses environment variables, properties files, command-line arguments, YAML files, and system properties to mention the required configuration properties for its corresponding environments.

Contents Of Collection Are Updated But Never Queried

Problem You might have seen a warning message similar to Contents of collection are updated but never queried or more specifically Contents of collection ‘collection variable name’ are updated but never queried. So the collection variable may be any instance of an collection API, for example, List, Set, or even Map.

‘AutoCloseable’ used without ‘try’-with-resources statement

Problem The warning message ‘AutoCloseable’ used without ‘try’-with-resources statement may appear in your Junit class(es) when you might have the similar kind of line (MockitoAnnotations.initMocks(this); is replaced in Mockito 3 by MockitoAnnotations.openMocks(this);) as shown below in your Junit class: Junit 5 Or

Store Image As Blob And Retrieve Blob As Image Using Spring

Image As Blob And Blob As Image Here in this example I am going to show you how to store image as blob into database. While retrieving blob from database I am going to display blob as image. While storing image as blob into database I am going to display a page which will be used for uploading the image….

React Login Logout With Spring Boot Security

React Spring Security Here in this example I am going to integrate React JS front-end with Spring Boot Security framework. When user will try to access the home page the user will be redirected to the login page if the user has not been authenticated already. Spring Boot’s default security mechanism asks for username and password when a user tries…

Spring Cloud LoadBalancer With Microservices

Microservices And Load Balancer Microservice, also known as, microservice architecture is an architectural style with an approach for developing a single application as a suite of small services, each running in its own process and communicating with a lightweight resource API that has the following characteristics: