Blog Archives

5-Minute-Snack: Get Base64 encoding for images in TMS Web Core

Not so long ago, I posted about how to convert an image into a Base64 string. Today, I will show you that using TMS Web Core, this is even easier.

If we look into the source code of TMS Web Core, we find that the custom image control adds a public property called Base64Image of type string.

Read more ›

Tags: , , , , , ,

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: , , , , , , , , , , , ,

Download an image from the web and assign a stream to TPicture (for any image format)

I struggled with this myself when implementing the Pexels component. The problem is rather simple: You download an image from the web, end up with data in a stream and want to use a bitmap to use the image in your application. The tasks presents itself as rather complex due to the flexibility that Delphi offers in this regard.

Read more ›

Tags: , , , , , , ,

Partnerships




Top