Click here to Skip to main content
15,896,730 members
Home / Discussions / C#
   

C#

 
Questionproblem with é, à, è Pin
abbd12-Feb-09 5:39
abbd12-Feb-09 5:39 
AnswerRe: problem with é, à, è Pin
musefan12-Feb-09 5:46
musefan12-Feb-09 5:46 
AnswerRe: problem with é, à, è [modified] Pin
Luc Pattyn12-Feb-09 5:47
sitebuilderLuc Pattyn12-Feb-09 5:47 
QuestionCan we know the extention of code base 64 digits?? Pin
abbd12-Feb-09 5:21
abbd12-Feb-09 5:21 
AnswerRe: Can we know the extention of code base 64 digits?? Pin
musefan12-Feb-09 5:25
musefan12-Feb-09 5:25 
AnswerRe: Can we know the extention of code base 64 digits?? Pin
Rob Philpott12-Feb-09 5:33
Rob Philpott12-Feb-09 5:33 
GeneralRe: Can we know the extention of code base 64 digits?? Pin
abbd12-Feb-09 5:36
abbd12-Feb-09 5:36 
AnswerRe: Can we know the extention of code base 64 digits?? [modified] Pin
Luc Pattyn12-Feb-09 5:42
sitebuilderLuc Pattyn12-Feb-09 5:42 
Hi,

if you are creating an app that does Base64 file conversion, you have several options:
1. you could generate a file that has the original filename and append "64" to the extension;
2. you could generate a file that holds at least two strings, the first being the filename+extension,
the next one being the base64-encoded data.


BTW: I hope you are not reading all the data first, then turning that into a single (possibly huge) string. If you were to do so, a large word document (one that Word your barely manages to open on
your system) would not fit in your conversion app since that would have to hold both the original
and the converted data (which is 33% larger in size). The right way is to have a loop reading
say 64KB of data and outputting that in base64, then repeat until all is done.

[ADDED]
if you are storing binary file data in a database, I suggest you use two fields, one for the
filename, one for the data.
[/ADDED]

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Thursday, February 12, 2009 11:49 AM
modified on Sunday, June 12, 2011 8:01 AM

Questionrange.InsertAfter() Pin
abbd12-Feb-09 5:02
abbd12-Feb-09 5:02 
QuestionSearching on Sharepoint Document Columns Pin
rkajal12-Feb-09 4:54
rkajal12-Feb-09 4:54 
AnswerRe: Searching on Sharepoint Document Columns Pin
Calin Tatar12-Feb-09 5:36
Calin Tatar12-Feb-09 5:36 
QuestionEvaluateException at Select-Funktion Pin
der.flori12-Feb-09 4:32
der.flori12-Feb-09 4:32 
AnswerRe: EvaluateException at Select-Funktion Pin
musefan12-Feb-09 4:58
musefan12-Feb-09 4:58 
AnswerRe: EvaluateException at Select-Funktion Pin
Calin Tatar12-Feb-09 5:02
Calin Tatar12-Feb-09 5:02 
GeneralRe: EvaluateException at Select-Funktion Pin
der.flori12-Feb-09 5:06
der.flori12-Feb-09 5:06 
GeneralRe: EvaluateException at Select-Funktion Pin
Calin Tatar12-Feb-09 5:08
Calin Tatar12-Feb-09 5:08 
AnswerRe: EvaluateException at Select-Funktion Pin
Lodeclaw12-Feb-09 5:04
Lodeclaw12-Feb-09 5:04 
AnswerRe: EvaluateException at Select-Funktion Pin
Calin Tatar12-Feb-09 5:06
Calin Tatar12-Feb-09 5:06 
GeneralRe: EvaluateException at Select-Funktion Pin
der.flori12-Feb-09 5:12
der.flori12-Feb-09 5:12 
GeneralRe: EvaluateException at Select-Funktion Pin
Calin Tatar12-Feb-09 5:13
Calin Tatar12-Feb-09 5:13 
GeneralRe: EvaluateException at Select-Funktion Pin
Ennis Ray Lynch, Jr.12-Feb-09 5:14
Ennis Ray Lynch, Jr.12-Feb-09 5:14 
Questionto copy or open. Pin
Stephen Lintott12-Feb-09 3:58
Stephen Lintott12-Feb-09 3:58 
AnswerRe: to copy or open. Pin
musefan12-Feb-09 4:05
musefan12-Feb-09 4:05 
GeneralRe: to copy or open. Pin
Deresen12-Feb-09 4:31
Deresen12-Feb-09 4:31 
GeneralRe: to copy or open. Pin
musefan12-Feb-09 4:37
musefan12-Feb-09 4:37 

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.