Solved

delphi graphic component which can download from a url

Posted on 2008-09-30
6
372 Views
Last Modified: 2013-11-23
Can anyone recommend a graphic component for delphi which is able to download from a url, preferably any format?

Thanks

Steve
0
Comment
Question by:steve-west
  • 3
  • 2
6 Comments
 
LVL 14

Expert Comment

by:SteveBay
ID: 22607178
The "any format" aspect is probably going to cost you. I am not aware of any free component that does that.
 You might try looking at http://leadtools.com/ or http://skylinetools.com/imagelib/index.html neither of these solutions is inexpensive however they are fairly complete.
0
 

Author Comment

by:steve-west
ID: 22612279
Thanks SteveBay, I'll check them out.
0
 

Author Comment

by:steve-west
ID: 22612364
I've looked, but these seem to be a massive overkill for what I actually require.

I'm building an HTML editor. The main editor component (similar to a richedit), when it requires an image to be rendered, fires an event which includes as a parameter the name of the image. The implementation of the event then returns a graphic object which has loaded the image.

This is fine for locally stored images (TBitmap.loadfromfile) etc, but when the image is web based - as is frequently the case - I've no suitable TGraphic which can access the resource.

So, all I need is a delphi component, deribved from TGraphic which can do the above, preferably able to handle JPG,GIF,BMP,PNG etc.
0
 
LVL 14

Expert Comment

by:SteveBay
ID: 22614770
Sorry, I have always had these big hammers available to me so I really am not aware of any components that do just those things.

There are all sorts of image display comps available on Torry's Delphi Pages http://www.torry.net/quicksearchd.php?String=Image&Title=Yes
However I did not see any that would do the download for you. You may have to tackle that step using INDY
0
 

Accepted Solution

by:
steve-west earned 0 total points
ID: 22615233
SteveBay

I finally worked out a solution by trawling through the VCL source, after all it can't be an uncommon requirement and I eventually found the solution.

Use a TDownLoadURL action (extactns unit) to download the image to a file. This is exactly what I wanted.

Thanks for your help anyway.

Steve
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
Mydac connection data base issue 3 139
Magic Software info 18 125
control image tags in a string ? 12 110
Not able to call Delphi XE10 dll function from Delphi 6.0 4 17
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

911 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

19 Experts available now in Live!

Get 1:1 Help Now