Solved

Display image from a link

Posted on 2014-02-20
4
485 Views
Last Modified: 2014-03-31
Hi Experts,

Exist some way to display external images in grid columns when the data source only contains links to the images ? In my data base only have the link, but I need show the image inside of the grid. I'm using delphi xe4 with firebird and IBO Objects

Could someone help me?

Thanks
Alexandre
0
Comment
Question by:alpires
4 Comments
 
LVL 29

Assisted Solution

by:Randy Downs
Randy Downs earned 250 total points
ID: 39876087
Maybe this will help - http://stackoverflow.com/questions/11067833/delphi-show-images-without-download

You can use this function (compiled and tested using Delphi 2010) to download a file over HTTP and store it in a TBitMap. It'll read all file types that have a registered support in Delphi's TGraphic hiearachy, and will auto-detect BMP, GIF, JPG and PNG file formats:
0
 
LVL 26

Accepted Solution

by:
Sinisa Vuk earned 250 total points
ID: 39876113
It is possible with using OnDrawColumnCell event. You can use TImageList for caching images. First, go through all records to cache images. This way you will have imageindex = recordNo. Resize them to size equal to cell size. Then draw images.
Some articles about draw image in grid.
http://delphi.about.com/library/weekly/aa032205a.htm
http://www.swissdelphicenter.ch/en/showcode.php?id=2209
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 39966094
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
data scientists and AI 17 100
TServerSocket - file via sendbuf or Text via sendtext ? 1 42
Press three keys together and trigger a function 3 50
Problem to open text file 11 67
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now