Solved

delphi graphic component which can download from a url

Posted on 2008-09-30
6
377 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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…

803 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