Java
Splitting DICOM file in to HEADER and DATA
What is DICOM?
Digital Imaging and Communications in Medicine (DICOM) is a standard for storing, handling, printing, and transmitting information in medical imaging. DICOM internally defines network communications protocol that uses TCP/IP to communicate between systems. DICOM files can be exchanged between two systems that are capable of receiving image and patient data in DICOM [...]
Dealing with MySQL TIMEDIFF() for hours greater than 838
Let’s have a look at the TIMEDIFF() function in MySQL:
TIMEDIFF(expr1,expr2) – TIMEDIFF() returns expr1 – expr2 expressed as a time value. expr1 and expr2 are time or date-and-time expressions, but both must be of the same type.
It seems that when TimeDiff is performed on 2 dates that [...]
Battling with java.lang.IllegalStateException: getWriter() has already been called for this response
I had a requirement to generate reports as PDF file which will also includes the charts and download them at client’s system. For creating charts, I was using Chart FX 6.5 (Product of Software FX).
And as a part of framework I created a JAVA class which will create the Charts images [...]
Inserting charts into PDF
JasperReport is report generation tool used to create reports in Java. And also used to include Charts, Images, and Tables into the report. It can produce the reports in multiple formats like PDF, CSV, HTML, XLS etc. In this article, first we discussed about creation of PDF file using jasper report.
Tools required to [...]
Logging with “Java logging API”
I wonder why you want to use Java logging API when you can use log4j. Well if you want to or have to use Java’s bundled API for logging, it is not that bad. There are several good articles on the web that go it much more details on this topic then what I [...]
Generating random Date/Time between 2 different Dates/TimeStamps in Java
It is common to find a random number between 2 given numbers… In our java application that we are working on, We had a need to find a random time between two given timestamp.. We felt it little challenging in the beginning… But later figured out a simple solution for the same… The steps for [...]

