Author: Hussein Terek

LDAP authentication in Java

LDAP authentication in Java

In this tutorial, we share the common code block that is used to connect to an LDAP server in Java. 1. InitialDirContext To connect to an LDAP server, you can...

Java - Convert Object to Map

Java – Convert Object to Map

This tutorial provides several ways of converting a Java object to a Map in Java. 1. Reflection The traditional way of converting a Java object to a Map is through...

How to reset password in Oracle 11g

How to reset password in Oracle 11g

1. Reset password In order to reset a password in Oracle 11g: Log in as a system user through sqlplus or any oracle client. Run this command: alter user <user_name>...

How to zip file in java

How to create a zip file in Java

In this tutorial, we show how to create a zip file from multiple files in Java. 1- ByteArrayOutputStream & ZipOutputStream Using ByteArrayOutputStream and ZipOutputStream classes provided by the JDK, you...

Spring Factory Bean

Spring Dynamic Factory Bean

In this tutorial, we illustrate how to create a dynamic factory bean in Spring. Suppose we have a file converter application which converts files based on a specific conversion type...

Spring – Read files from classpath

Spring – Read files from classpath

In this tutorial, we discuss several ways of reading a resource file from classpath in a Spring MVC application. 1- ClassPathResource Using ClassPathResource class provided by Spring Core, you can...

How to upload files with Spring MVC

How to upload files with Spring MVC

In this tutorial, we discuss how to upload files with Spring MVC. If you’re more interested in doing it the old way using Servlets, then check “How to upload files...

How to upload files to a servlet

How to upload files to a servlet

In this tutorial, we discuss how to upload files to a servlet. Parsing the uploaded file in the servlet depends strictly on the used version of the servlet API, here...

Top 3 Image Converter Tools

Top 3 Image Converter Tools

When it comes to PDF or WORD file converters, you can find plenty of tools available online for free, however, it’s not the case for image converters. Not all the...