Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Automatic Email Sender Pin
Manas Bhardwaj15-Jul-09 2:29
professionalManas Bhardwaj15-Jul-09 2:29 
GeneralRe: Automatic Email Sender Pin
dev sheoran15-Jul-09 18:39
dev sheoran15-Jul-09 18:39 
Questionvbscript installation Pin
arkiboys15-Jul-09 0:28
arkiboys15-Jul-09 0:28 
AnswerRe: vbscript installation PinPopular
Christian Graus15-Jul-09 0:44
protectorChristian Graus15-Jul-09 0:44 
QuestionHow to convert an image to a Base64 string and back? Pin
Megidolaon15-Jul-09 0:06
Megidolaon15-Jul-09 0:06 
AnswerRe: How to convert an image to a Base64 string and back? Pin
SeMartens15-Jul-09 0:21
SeMartens15-Jul-09 0:21 
AnswerRe: How to convert an image to a Base64 string and back? Pin
Super Lloyd15-Jul-09 0:27
Super Lloyd15-Jul-09 0:27 
AnswerRe: How to convert an image to a Base64 string and back? Pin
Luc Pattyn15-Jul-09 2:08
sitebuilderLuc Pattyn15-Jul-09 2:08 
Hi,

I have no experience with ImageConverter and have never seen any code using it. What most people do is save the image to a MemoryStream, get its byte array, call Convert.ToBase64String; then do the opposite to get it back. The advantage is the code really is very symmetrical, which is great as you want it to behave symmetrically too.

BTW: your initializations with dummy data/sizes don't make sense, just leave them out. I mean the new byte[1] and new Bitmap(1,1)

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

AnswerRe: How to convert an image to a Base64 string and back? Pin
Megidolaon15-Jul-09 7:30
Megidolaon15-Jul-09 7:30 
QuestionSmart Cards, what is the new PCSC? Pin
Dewald14-Jul-09 23:47
Dewald14-Jul-09 23:47 
QuestionC1.C1Zip Pin
GauravKP14-Jul-09 23:46
professionalGauravKP14-Jul-09 23:46 
AnswerRe: C1.C1Zip Pin
dan!sh 15-Jul-09 0:42
professional dan!sh 15-Jul-09 0:42 
Questionrun script on remote machine Pin
arkiboys14-Jul-09 23:25
arkiboys14-Jul-09 23:25 
QuestionForm error massage. Has anyone seen it! Pin
gwithey14-Jul-09 23:19
gwithey14-Jul-09 23:19 
AnswerRe: Form error massage. Has anyone seen it! Pin
gwithey14-Jul-09 23:30
gwithey14-Jul-09 23:30 
GeneralRe: Form error massage. Has anyone seen it! Pin
Tom Deketelaere15-Jul-09 1:52
professionalTom Deketelaere15-Jul-09 1:52 
GeneralRe: Form error massage. Has anyone seen it! Pin
gwithey15-Jul-09 2:06
gwithey15-Jul-09 2:06 
GeneralRe: Form error massage. Has anyone seen it! Pin
Tom Deketelaere15-Jul-09 2:35
professionalTom Deketelaere15-Jul-09 2:35 
GeneralRe: Form error massage. Has anyone seen it! Pin
gwithey15-Jul-09 2:38
gwithey15-Jul-09 2:38 
AnswerRe: Form error massage. Has anyone seen it! Pin
V.15-Jul-09 1:02
professionalV.15-Jul-09 1:02 
Questionskipping access denied folders when using GetDirectories() Pin
lane0p214-Jul-09 22:46
lane0p214-Jul-09 22:46 
AnswerRe: skipping access denied folders when using GetDirectories() Pin
benjymous14-Jul-09 23:04
benjymous14-Jul-09 23:04 
AnswerRe: skipping access denied folders when using GetDirectories() Pin
Luc Pattyn15-Jul-09 0:30
sitebuilderLuc Pattyn15-Jul-09 0:30 
GeneralRe: skipping access denied folders when using GetDirectories() Pin
dan!sh 15-Jul-09 0:39
professional dan!sh 15-Jul-09 0:39 
GeneralRe: skipping access denied folders when using GetDirectories() Pin
Luc Pattyn15-Jul-09 0:44
sitebuilderLuc Pattyn15-Jul-09 0:44 

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.