Click here to Skip to main content
16,012,061 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to call base class methods automatically? Pin
S. Senthil Kumar22-Jun-08 10:17
S. Senthil Kumar22-Jun-08 10:17 
AnswerRe: How to call base class methods automatically? Pin
Joe Woodbury22-Jun-08 13:27
professionalJoe Woodbury22-Jun-08 13:27 
GeneralRe: How to call base class methods automatically? Pin
Metal7623-Jun-08 4:05
Metal7623-Jun-08 4:05 
QuestionGet Class Info Pin
half-life22-Jun-08 5:45
half-life22-Jun-08 5:45 
AnswerRe: Get Class Info Pin
zafersavas22-Jun-08 5:57
zafersavas22-Jun-08 5:57 
GeneralRe: Get Class Info Pin
0x3c022-Jun-08 6:15
0x3c022-Jun-08 6:15 
GeneralRe: Get Class Info Pin
half-life23-Jun-08 8:26
half-life23-Jun-08 8:26 
QuestionConverting Firefox's icon string to the image !!! Pin
Mohammad Dayyan22-Jun-08 3:58
Mohammad Dayyan22-Jun-08 3:58 
Hi there.
Firefox browser saves site's icon into the base64 string in its bookmark HTML file.
Like this :

<A HREF="http://en-us.www.mozilla.com/en-US/" 
ADD_DATE="1183006386" LAST_MODIFIED="1212431053"
 
ICON_URI="http://en-us.www.mozilla.com/favicon.ico" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/
9hAAABEUlEQVQ4jbWSsXEDMQwEL0CIWAWwBdTCFtgCU0Xs4bMPVAgL+GZUwTrg/
5uS7JECGwlnOLzF4UDpr6u1RkqJkIgIWmv03nkrvN/vRAQhsUks+1mkAZN+B63
rDTOj7MIicZUgxlkkUkq4+88AMzsB7J23GLCrxKYg50xKiUXiRdxaw8xYdgD67
nyAmOBlHgfA3cfsMR7NggN2ZHLcLftYp4Pn7jMgJNydnPOjkwgEnGtbJsH1CXh
sotZKiTjDlpnRe8fdT9E2Cee7I5daKwpRShkOzAx3f5l9k7hcLoREzplaK4uCC
LGuNx620Ht/sb5Ntt/+xFor8Zx87El/Ur13Yg9n7p5z/gwwg47w3H0E9Z/1BfA
kJDRE3FKkAAAAAElFTkSuQmCC" SHORTCUTURL="mozila" 
LAST_CHARSET="UTF-8">Mozilla - Home</A>


Now, I want convert it to an image.

for this, first I omitted data:image/png;base64, and other needless strings , then I used this method :

private Image Base64StringToImage(string base64ImageString)
{
   byte[] b;
   b = Convert.FromBase64String(base64ImageString);
   MemoryStream ms = new System.IO.MemoryStream(b);
   Image img = System.Drawing.Image.FromStream(ms);
   return img;
}

But this Exception occurred :
Invalid length for a Base-64 char array


Can you help me ?

Sorry for my English. I'm a freshman .

AnswerRe: Converting Firefox's icon string to the image !!! Pin
User 665822-Jun-08 4:03
User 665822-Jun-08 4:03 
GeneralRe: Converting Firefox's icon string to the image !!! Pin
Mohammad Dayyan22-Jun-08 4:14
Mohammad Dayyan22-Jun-08 4:14 
QuestionHow to stop running thread ? Pin
Yanshof22-Jun-08 3:29
Yanshof22-Jun-08 3:29 
AnswerRe: How to stop running thread ? Pin
Guffa22-Jun-08 3:33
Guffa22-Jun-08 3:33 
AnswerRe: How to stop running thread ? Pin
half-life22-Jun-08 5:03
half-life22-Jun-08 5:03 
GeneralRe: How to stop running thread ? Pin
N a v a n e e t h22-Jun-08 5:39
N a v a n e e t h22-Jun-08 5:39 
AnswerRe: How to stop running thread ? Pin
N a v a n e e t h22-Jun-08 5:37
N a v a n e e t h22-Jun-08 5:37 
AnswerRe: How to stop running thread ? Pin
Joe Woodbury22-Jun-08 12:15
professionalJoe Woodbury22-Jun-08 12:15 
QuestionIWshRuntimeLibrary Pin
Waheed Ur Rehman22-Jun-08 2:31
Waheed Ur Rehman22-Jun-08 2:31 
AnswerRe: IWshRuntimeLibrary Pin
Guffa22-Jun-08 3:36
Guffa22-Jun-08 3:36 
QuestionHow add string to text box in way that the string structure will be same in each line ? [modified] Pin
Yanshof21-Jun-08 23:05
Yanshof21-Jun-08 23:05 
AnswerRe: How add string to text box in way that the string structure will be same in each line ? Pin
User 665821-Jun-08 23:45
User 665821-Jun-08 23:45 
GeneralRe: How add string to text box in way that the string structure will be same in each line ? Pin
Yanshof21-Jun-08 23:50
Yanshof21-Jun-08 23:50 
GeneralRe: How add string to text box in way that the string structure will be same in each line ? Pin
User 665821-Jun-08 23:54
User 665821-Jun-08 23:54 
AnswerRe: How add string to text box in way that the string structure will be same in each line ? Pin
Luc Pattyn22-Jun-08 0:46
sitebuilderLuc Pattyn22-Jun-08 0:46 
QuestionSqlConnection using a DSN Pin
TheFoZ21-Jun-08 22:55
TheFoZ21-Jun-08 22:55 
AnswerRe: SqlConnection using a DSN Pin
TheFoZ22-Jun-08 0:26
TheFoZ22-Jun-08 0:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.