How to retrieve a bitmap from a .resx file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Visual Studio 2003
Windows XP SP2

Problem: I have lost my original xyz.bmp file.

However it is still available in my app because they get copied into the
..resx file and stores as a base64 encoded string, probably encrypted as well
as there is a publickeytoken stored in the xml record.

My question is has anybody got a bit of code that will take that string or
the panel with the backgroundimage property set to that bitmap and save this
to a file as a .bmp again.
I am sure it can be done I just aint hacker enough to do it for myself.

Any help gratefully recieved
Chris
 
Felipe
Thanks for trying,

asmex will recreate the resource from an exe but not dig out the individual
bitmap from that resource.

Chris
 
I found a solution and here it is for anybody else with a similiar problem:

http://www.codeproject.com/dotnet/ResourceEditor.asp

Its a little tool that allows you to edit resource files etc. It integrates
with VS.2003 and all you do is open the resx file ( from within VS )
containing the missing .bmp double click the image in the display and it
loads the image editor. From there its just a "Save as" away from recovered

Thanks Filipe for putting me on the right line and double thanks to Gaston
for ResourceEditor.
 
Back
Top