473,511 Members | 16,660 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 2131
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
63757
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
4585
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
12268
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
7242
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
7138
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
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7081
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
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5668
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,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.