Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: need help witch creating method Pin
OriginalGriff30-Jul-16 0:11
mveOriginalGriff30-Jul-16 0:11 
QuestionParsing a string with multiple values - JSON or Retro? Pin
Michael Breeden29-Jul-16 1:48
Michael Breeden29-Jul-16 1:48 
AnswerRe: Parsing a string with multiple values - JSON or Retro? Pin
Richard Deeming29-Jul-16 2:09
mveRichard Deeming29-Jul-16 2:09 
GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Michael Breeden29-Jul-16 2:43
Michael Breeden29-Jul-16 2:43 
GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Richard Deeming29-Jul-16 2:47
mveRichard Deeming29-Jul-16 2:47 
GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Michael Breeden29-Jul-16 3:18
Michael Breeden29-Jul-16 3:18 
GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Richard Deeming29-Jul-16 3:36
mveRichard Deeming29-Jul-16 3:36 
GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Michael Breeden29-Jul-16 4:02
Michael Breeden29-Jul-16 4:02 
Questionconvert Ms access project to c# Pin
dabbourabd28-Jul-16 23:00
dabbourabd28-Jul-16 23:00 
AnswerRe: convert Ms access project to c# Pin
Richard MacCutchan28-Jul-16 23:08
mveRichard MacCutchan28-Jul-16 23:08 
AnswerRe: convert Ms access project to c# Pin
OriginalGriff28-Jul-16 23:09
mveOriginalGriff28-Jul-16 23:09 
GeneralRe: convert Ms access project to c# Pin
dabbourabd28-Jul-16 23:37
dabbourabd28-Jul-16 23:37 
GeneralRe: convert Ms access project to c# Pin
dabbourabd28-Jul-16 23:32
dabbourabd28-Jul-16 23:32 
AnswerRe: convert Ms access project to c# Pin
BillWoodruff29-Jul-16 3:16
professionalBillWoodruff29-Jul-16 3:16 
GeneralRe: convert Ms access project to c# Pin
dabbourabd29-Jul-16 11:00
dabbourabd29-Jul-16 11:00 
AnswerRe: convert Ms access project to c# Pin
Eddy Vluggen29-Jul-16 4:39
professionalEddy Vluggen29-Jul-16 4:39 
GeneralRe: convert Ms access project to c# Pin
dabbourabd29-Jul-16 10:58
dabbourabd29-Jul-16 10:58 
GeneralRe: convert Ms access project to c# Pin
Eddy Vluggen29-Jul-16 14:26
professionalEddy Vluggen29-Jul-16 14:26 
Questionc#, .NET, Application.Idle Event: Confusion with MSDN documentation Pin
User 1106097928-Jul-16 20:11
User 1106097928-Jul-16 20:11 
AnswerRe: c#, .NET, Application.Idle Event: Confusion with MSDN documentation Pin
OriginalGriff28-Jul-16 21:38
mveOriginalGriff28-Jul-16 21:38 
GeneralRe: c#, .NET, Application.Idle Event: Confusion with MSDN documentation Pin
User 1106097928-Jul-16 21:51
User 1106097928-Jul-16 21:51 
QuestionWMF to Base64String Pin
sunsher28-Jul-16 19:11
sunsher28-Jul-16 19:11 
AnswerRe: WMF to Base64String Pin
OriginalGriff28-Jul-16 19:39
mveOriginalGriff28-Jul-16 19:39 
Yes: all files are just a stream of byte values - it's the interpretation that software puts on the internal format of those bytes that makes it a "WMF" or "JPG" file. The extension just indicates what format the software should look for.
C#
string base64 = Convert.ToBase64String(file.ReadAllBytes(@"D:\Temp\myPicture.wmf"));
However, that doesn't mean that whatever you pass the base64 string to can do anything useful with it. For example, not all browsers support WMF file data in any format, and changing it to Base64 will not fix that. WMF is pretty much a "Windows only" image format: you would probably be better off using a more generic format such as JPG, GIF, or PNG.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: WMF to Base64String Pin
sunsher28-Jul-16 20:47
sunsher28-Jul-16 20:47 
GeneralRe: WMF to Base64String Pin
OriginalGriff28-Jul-16 21:30
mveOriginalGriff28-Jul-16 21:30 

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.