|
I thank you for your advice, but the number of answers someone has posted on an arbitrary forum has no bearing on their ability to be helpful. The fact that you, also a prolific poster, called the OP an idiot makes me doubt even more the validity of the equation of contribution to helpfulness. All I'm saying is be helpful rather than treat him like a fool, something I've seen Luc do on more than one occasion, so I'm guessing it's not just that he's had a bad day.
I've had the joy of working for programmers of many years' experience who took delight, it seemed, in making me feel like an invalid when I didn't know, or was unaware of, some dark corner of the world of software engineering - I know how it feels. It's not a good feeling.
I will admit I did get a bit hot under the collar, and I apologise for this - I've just seen this so many times (especially considering my whopping 3 years of commercial experience) that I have trouble letting it lie.
|
|
|
|
|
|
Hi Nick,
I really appreciate your feedback. I have to agree with you, I have no doubt in thinking Luc is probably one of the most knowledgeable in these forums but from my experience he has been very unhelpful and I did take his feedback as being a little rude.
I refreshed on Base64 and found the following very helpful:
http://www.aardwulf.com/tutor/base64/base64.pdf
Here is an explanation of the process I’m trying to achieve…
I’m using a class library named SmtPop to allow the retrieval of email from a Pop3 server.
1. After the emails are retrieved from the server I check if they have attachments. attach is of type MimeAttachment
2. If an email has an attachment then the text within the attachment is accessed through attach.Body.
3. I then want to create a file to save the email attachment text into and give the file a different name to its original.
The only reason I’m converting the body of the attachment to a Byte array using Convert.FromBase64String, is because MemoryStream takes in a byte array as its first parameter in order to create a memory stream that can then be written to the file. FromBase64String is the only convert method that I know of that returns a Byte array.
Maybe there is an alternative way to the MemoryStream that doesn’t involve converting the attachment string to a Byte array?
Let me know if any of this isn’t clear.
Thanks again,
Mel
|
|
|
|
|
I'm going to read up on the StreamWriter now.
Thanks.
|
|
|
|
|
I found out that with MIMEAttachments, plain text word documents have "base64" as their ContentTransferEncoding value and HTML formatted word documents have "quoted-printable" as their ContentTransferEncoding value.
Does anyone know or can you refer me to a site that explains how to download quoted-printable formatted emails?
Thank you,
Mel
|
|
|
|
|
I have a generic event handler:
public delegate void EventHandler<TEventArgs>(object sender, TEventArgs e);
public class EventArgs_Generic<T> : EventArgs
{
private T _TargetObject;
public T TargetObject
{
get { return _TargetObject; }
}
public EventArgs_Generic(T Target)
{
_TargetObject = Target;
}
}
How do I list this in an interface? Something like...
event EventHandler<T> ....
Thanks
Everything makes sense in someone's mind
|
|
|
|
|
You can do this:
public interface IFoo<T>
{
event EventHandler<T> Bar;
}
Or you can just make the generic type concrete in the interface:
public interface IFoo
{
event EventHandler<int> Bar;
}
Depending upon your circumstances.
|
|
|
|
|
Say, I have
DataGridviewCheckBoxCell cell object. I can select/deselect it by doing
cell.Value = true /
cell.Value = false . This works until user manually selects/deselects some checkbox - after that this checkbox stops changing after assigning a value. What could be the reason for that?
|
|
|
|
|
Assuming you've bound the grid to a datasource, you have to modify the datasource, not the cell values.
|
|
|
|
|
In SQL Server I was doing this:
IF (record doesn't exists)
RETURN 999
and then I real the value using sqlParameter and Output Type is returnValue..
how can I do the same in mySQL
|
|
|
|
|
|
There's a "Database" forum further down the list of forums on the left.
|
|
|
|
|
Not a C# question, unless they've completely re-designed c# in the last few minutes.
|
|
|
|
|
Wow, you are here for more than 8 years, have already posted more than 500 messages and still haven't figured out, how to find the right forum for a question.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
In SQL Server, I was doing this in the stored procedure:
param_record_id int OUTPUT
then I :
set param_record_id = scope_identity()
how can id o the same in mySQL stored procedure?
|
|
|
|
|
And how is this a C# question?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hopefully this one can help. How to get OUT parameter from MySQL
It didn't even click in me that I wasn't in the db forum... Ignore my answer and put the question in the right place...
I wasn't, now I am, then I won't be anymore.
modified on Tuesday, November 23, 2010 10:35 AM
|
|
|
|
|
Hi,
I have an appointment software using C# WinForm and I want to send alerts (SMS & Emails) through SMS gateways and email to the customers..
I want to know what's best...
1. Send the alert directly from the PC? this will require an internet connection on the PC.
or:
2. Send the alerts to the database on the server and make it in queue? this will not require internet connection to be enabled on every PC.
what do you think?
|
|
|
|
|
This is entirely up to your clients requirements. Personally, I'd go for a more centralized solution, but have no idea what your specs are, the design of the application, what the load is going to be, what the clients restrictions are, ... In other words, you should be asking your client this question, not us.
|
|
|
|
|
my client doesn't talk IT
I have dell server and dell clients
it's a medical software for a clinic with let's say 100 appointments per day
My backend is MySQL and I am using C#.
if you were given this what you will do? will send it from the PC or queue it on the server?
|
|
|
|
|
jrahma wrote: if you were given this what you will do?
I alreay told you what to do. Interviewing the client and gathering detailed requirements is what I'd be doing. Guessing at what the client wants will only get you fired, or not paid when the job is "complete".
I also already told you what my preference would be, but then, I'm not the one coding the app and I'm not the one who's going to pay for it.
|
|
|
|
|
hi
I have homework but I cant solved because I cant install oracle in pc (pl/sql)
this is question print the max salary of emp by function u created in pl/sql
and my teacher want answer in Thursday
|
|
|
|
|
Why can't you install oracle?
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
Oh, there can be quite a few reasons for not being able to install Oracle or getting it running. Have you ever tried it? Then you'd remember the fun with it: e.g. no spaces in path names, extreme requirements for memory and swap files, very complicated processes for creating table spaces, users, schemas, etc. Really stuff from the last millennium, but you need latest hardware!
By the way, there is an "I hate Oracle club": http://forums.thedailywtf.com/forums/17.aspx[^]
|
|
|
|
|
because my os is vista oracal not install in vista
|
|
|
|