?
Solved

delphi graphic component which can download from a url

Posted on 2008-09-30
6
Medium Priority
?
399 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

762 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