How to write an InputStream to a File – using Java, Guava and the Commons IO library.
Also find me here:
Baeldung Author
Eugen Paraschiv
I’m a software engineer with a passion for REST, TDD and clean code, Web Security and Data Mining. Baeldung is about all of these and more.
Here's what I've written (so far):
Baeldung on Java
- All
- Weekly Review (152)
- Spring (33)
- Spring Security (29)
- REST (23)
- Java IO (22)
- HTTP Client-Side (20)
- Jackson (17)
- Data (17)
- Java Collections (12)
- Java (9)
- Testing (8)
- Spring MVC (7)
- Maven (7)
- Spring Persistence (6)
- Persistence (6)
- Java List (6)
- JPA (6)
- Java String (5)
- Spring Web (4)
- Spring Boot (4)
- Spring Data (3)
- JSON (3)
- Security (2)
- Meta (2)
- Java Map (2)
- Java Array (2)
- Cloud (2)
- News (1)
- Java Numbers (1)
- Java Concurrency (1)
- IDE (1)
- Core Java (1)
- Artificial Intelligence (1)
- Architecture (1)
Java – Convert File to InputStream
Filed under Java IO
How to open an InputStream from a Java File – using plain Java, Guava and the Apache Commons IO library.
Java Byte Array to InputStream
Filed under Java IO
How to convert a byte[] to an InputStream using plain Java or Guava.
Java InputStream to Byte Array and ByteBuffer
Filed under Java IO
How to convert an InputStream to a byte[] using plain Java, Guava or Commons IO.
Java String to InputStream
Filed under Java IO, Java String
How to convert a String to an InputStream using plain Java, Guava or Commons IO.
The Baeldung Weekly Review 24
Filed under Weekly Review
This has been quite a diverse week – we saw some Spring work on caching and Spring Data and some great testing articles dealing with fixtures and design.
Project Configuration with Spring
Filed under Spring
This article discusses an simple yet flexible solution to configuration that is specific to the environment with Spring.
The Baeldung Weekly Review 23
Filed under Weekly Review
This week we discuss the HTTP/1.1 spec update (5 years in the works), some recordings and upcoming Spring webinars and clean testing.
Removing All Duplicates From a List in Java
Filed under Java Collections
How to remove all duplicate elements from a List – first with plan Java, then Guava and finally with Java 8 lambdas.