Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / October 2005

Tip: Looking for answers? Try searching our database.

Structured Storage API \ File Properties (PIDSI_THUMBNAIL)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Newell - 07 Oct 2005 17:19 GMT
All,

I've ported the Microsoft Structured Storage API to C# and it works
great.  My main purpose was to access a compound file's file properties,
which I've done.

I would now like to extract out the embedded thumbnail image via
PIDSI_THUMBNAIL and I need a little help.  I've got the STATPROPSTG for
the property, now I just need the code to read the data \ extract it out
to a file.

I've googled to the end of earth and couldn't find anything.  I am aware
of the IExtract interface but in my situation, I do not want to use it.

Anyone with experience on this topic?  Any hints are appreciated.  Thanks!

Jason Newell
Mattias Sjögren - 07 Oct 2005 22:54 GMT
Jason,

>Anyone with experience on this topic?  Any hints are appreciated.  Thanks!

I haven't done it myself, but I believe this page shows how to do what
you want (in C++). All you have to do is translate it to C# :)

http://sparks.discreet.com/knowledgebase/public/solutions/ExtractThumbnailImg.htm

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Jason Newell - 07 Oct 2005 23:04 GMT
Hi Mattias,

I knew that I should have mentioned that I found that page ;-).  I've
done a lot of C++ translation, obviously, but I'm tired now after
porting the Storage API and I was wanting to be lazy lol.  Translating
that example would take a wee bit more time than I care to spend.  It
wasn't that big of deal anyway.  It was a "nice to have" if you will.

Anyway, thanks for looking into it.  I appreciate it.

If anyone is interested, I can post the ported API on my website for
download.  I sure wish I had an example when I first started looking
into it.

Jason Newell
www.jasonnewell.net

> Jason,
>
[quoted text clipped - 6 lines]
>
> Mattias
taj - 07 Oct 2005 23:29 GMT
Hi Jason,

i asume i can't help you really; but anyhow, i'm interested and i
promise to take a look cause i'm working on something comparable...

regards,
taj

> If anyone is interested, I can post the ported API on my website for
> download.  I sure wish I had an example when I first started looking
> into it.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.