473,506 Members | 16,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to retrieve a bitmap from a .resx file

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

Jul 21 '05 #1
3 2128
Hi Chris
You can always, use the reflection namespace objects to retrieve images,
docs, and anything really that was imbedded into an assembly. I don't
remember exactly how to do it... but here isd an interesting artcle:

http://www.codeproject.com/dotnet/asmex.asp
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:37**********************************@microsof t.com...
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

Jul 21 '05 #2
Felipe
Thanks for trying,

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

Chris
Jul 21 '05 #3
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.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1665
by: Carl Mercier | last post by:
(I'm using C# 2.0) Hi, I have placed an icon file in resources.resx. The problem is that I don't know how to retrieve it. In VB.NET 2.0, My.Resources.MyIcon does the trick, but what's the...
0
499
by: David Krussow | last post by:
I had an aspx page (mypage.aspx) with a code behind file (mypage.aspx.cs) that in turn had a resx file (mypage.aspx.resx). I decided to create another aspx page (myotherpage.aspx) that would reuse...
3
327
by: Chris | last post by:
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...
5
63756
by: João Santa Bárbara | last post by:
hi there i have this error in VS2005 DEV Edition "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." i have create an windows...
0
1670
by: prabhupr | last post by:
Hi Folks I'm currently working on a Localization+Globalization project; for this project, we need to generate ".Resx" files and we use "US English" Resx file as the base version, to compare the...
6
4582
by: ad | last post by:
I wnat to load a file in an .resx file and transfer the file to a stream. How can I do?
7
12267
by: nws_reader | last post by:
I have a web service that needs to return a particular string for one of its web methods. I would like to manage the strings in a resource file. I went through a lot of the help provided on the...
5
9433
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, I've created a class library assembly containing several string resource files, like: - TableColumns.resx - TableColumns.de.resx - General.resx - General.de.resx
8
14915
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
0
7218
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7103
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7021
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.