How to Write/Store an object to file in java?

Writing a Java objects to a file is called as Serialization in java. In order to do this, you have to implement the Serializable interface, and use ObjectOutputStream to write the object into a file. To do this we have created Employee class which implements java.io.Serializable. To write an object to a stream call the …

Read More

How to Store BLOBs Data into Database in Java?

Below Java code shows how to store BLOB object into database – Database BLOBs (Binary Large Objects) can be used to stored any data, it could be image, audio or video file for instance. This example shows you how we use JDBC library to store image in our database. To send the binary information to …

Read More

zcat : Linux Command Manual

SYNOPSIS gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name … ] gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name … ] zcat [ -fhLV ] [ name … ] DESCRIPTION Gzip reduces the size of the named files using Lempel-Ziv coding (LZ77). Whenever possible, each file is replaced by one with the extension .gz, while …

Read More

zcmp : Linux Command Manual

SYNOPSIS zcmp [ cmp_options ] file1 [ file2 ] zdiff [ diff_options ] file1 [ file2 ] DESCRIPTION Zcmp and zdiff are used to invoke the cmp or the diff program on files compressed via gzip. All options specified are passed directly to cmp or diff. If only 1 file is specified, then the files …

Read More