473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 1056
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...

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.