473,473 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is it possible to do this....

I wish to grab a remote ICO image, convert it to a PNG and then convert
that to Base64 to save into an XML file. Is this possible to do using
ASP.Net, and if so how?

Code examples wanted, either for each step or for the whole lot,
preferably in JScript.

All help appreciated.

May 6 '06 #1
2 1058
Here's the ICO file format:

http://www.daubnet.com/formats/ICO.html

As you see it contains two bitmaps. You have to combine those to form
the image.

Use a Bitmap object to handle the image. Save the bitmap as PNG to a
MemoryStream.

The XmlWriter class has a method for writing Base64.

da****@edazzle.net wrote:
I wish to grab a remote ICO image, convert it to a PNG and then convert
that to Base64 to save into an XML file. Is this possible to do using
ASP.Net, and if so how?

Code examples wanted, either for each step or for the whole lot,
preferably in JScript.

All help appreciated.

May 6 '06 #2
You can convert from ICO to PNG. Goran has the spec. I would, however,
consider finding a library to do that. Base64 conversion is fairly simple,
however. At worst case, have a web service feed the binary back. The byte[]
coming from it is Base64.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
<da****@edazzle.net> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I wish to grab a remote ICO image, convert it to a PNG and then convert
that to Base64 to save into an XML file. Is this possible to do using
ASP.Net, and if so how?

Code examples wanted, either for each step or for the whole lot,
preferably in JScript.

All help appreciated.

May 6 '06 #3

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

Similar topics

1
by: Alvin Lau | last post by:
It is possible to write a bluetooth application software by C# in Pocket PC ? If it is possible , where can i find the reference or sample? ThX ~ *** Sent via Developersdex...
1
by: Lars | last post by:
I want to write a program that reacts on changes in another application. Is it possible to get a copy of (some of) the messages it recieves? Another approach is to watch for changes on the screen....
4
by: Ravikanth[MVP] | last post by:
Hi It is possible that IIS and SQL Server can reside on Seperate Machines and you can use Integrated Windows Authentication to connect. Ravikanth >-----Original Message-----
2
by: Ken Sturgeon | last post by:
Is it possible to execute an iSeries program from a VB.Net application? Where might I find some reference material that would get me started?
8
by: Mir Nazim | last post by:
Hello, I need to write scripts in which I need to generate all posible unique combinations of an integer list. Lists are a minimum 12 elements in size with very large number of possible...
17
by: binjobster | last post by:
Hello everyone, I'm updating some documents that describes so many C/C++ functions/method(about 2500). But I'm not familiar with these codes. So I want to find such a utility can generate...
1
by: Joe Peterson | last post by:
I've been doing a lot of searching on the topic of one of Python's more disturbing issues (at least to me): the fact that if a __del__ finalizer is defined and a cyclic (circular) reference is...
25
by: Piotr Nowak | last post by:
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e....
2
by: Kofa | last post by:
Dear All, I'd like to know whether it is possible to restore backups created on a production machine, running DB2 9.1 on Windows, using DMS table space containers, onto a developer's machine,...
0
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
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,...
0
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...
0
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
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
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
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...
0
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 ...
0
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.