Blog Archives


5-Minute-Snack: Base64 encode and decode images in Delphi

Quite some time ago, I blogged about how to encode and decode data as Base64. The post is still accessed on a regular basis. However, I have received a question multiple times and want to provide the solution: How can images be encoded and decoded?

The key lies in the polymorphism of TPicture that allows you to implement a solution that is not even depending on one file format.

Read more ›

Tags: , , , , , , , , , , , ,

5-Minute-Snack: Determine the operating system your app is running on

Sometimes, we cannot just rely on the framework, we need to make direct calls to the operating system. Too bad, there is not a single call for every operating system. Without knowing which environment is running in, it is hard to make the right decision. Back in the day, we needed to juggle around pCHARs,

Read more ›

Tags: , , , , , ,

5-Minute-Snack: Determine the vertical refresh rate in Hz of your display

Delphi has taken great strides in the RTL that make using direct Windows API calls more and more redundant. A lot of things can be determined using classes that can either be found in the RTL or VCL. However, the vertical refresh rate seems to have been overlooked as I cannot find it in any of the new classes of the RTL.

Read more ›

Tags: , , , , , , , ,

5-Minute-Snack: Build a Web Service to access Exchange servers

Data access has always been the number one feature that distinguished Delphi from another development environments. Still, in recent years there has been some criticism that Delphi has not kept up. Since the integration of AnyDAC as FireDAC a few years ago, the situation has changed again.

FireDAC is one of the best data-access frameworks and it has become part of Delphi.

Read more ›

Tags: , , , , , , , , , , ,