Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1983
  • Last Modified:

Extract Thumbnails from thumbs.db

Hello , Does any one have a Delphi CODE or a Component to Extract images from thumbs.db ???
0
akhachab
Asked:
akhachab
2 Solutions
 
PAG_PromaxCommented:
Have a read through this.  There's some examples in there that has helped someone with the same question as you:

http://www.experts-exchange.com/Programming/Programming_Platforms/Win_Prog/Q_20822626.html
0
 
akhachabAuthor Commented:
already read that , i am looking for a Delphi Ready Component to use .
0
 
PAG_PromaxCommented:
I dont think you'll find one.  I've looked before and not found anything.  You're going to have to rely on APIs I think.

If you do it, try making it into a component yourself and release it for everyone else to use.  What goes around, comes around, eh? :)
0
 
bernaniCommented:
Hi,

There is a C# library (under LGPL)  forreading thumb.db at http://www.petedavis.net/MySite/DynPageView.aspx?pageid=31 (with source code).

From the page:

There is only one class you need to use: ThumbDB.
The ThumbDB constructor takes a string with the full path and filename of the thumbs.db file you want to read.
public string[] GetThumbFiles()
public byte[] GetThumbData(string filename)
public Image GetThumbnailImage(string filename)

...

Maybe someone here can help you translate the whole from C# to delphi ...and maybe as said above release it for everyone else to use.

See also infos on thumbs.db file internals at http://vinetto.sourceforge.net/docs.html





0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now