Solved

delphi graphic component which can download from a url

Posted on 2008-09-30
6
366 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
Comment Utility
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
Comment Utility
Thanks SteveBay, I'll check them out.
0
 

Author Comment

by:steve-west
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

744 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

13 Experts available now in Live!

Get 1:1 Help Now