all groups > dotnet faqs > july 2005 >
You're in the

dotnet faqs

group:

How to send a small jpeg to a newsgroup?


How to send a small jpeg to a newsgroup? Jack Nation
7/21/2005 11:08:22 AM
dotnet faqs:
Anyone tell me how to send a small jpeg (average size is about 6kb) to a
newsgroup _ at least the information in it? I cannot copy the text
information in it because the background is grayed out.
--
Sincerely,
Jack Nation

Re: How to send a small jpeg to a newsgroup? Jack Nation
7/21/2005 1:05:41 PM
Hi Chad,
Yes, I would like that file attachment procedure.
--
Sincerely,
Jack Nation

[quoted text, click to view]

Re: How to send a small jpeg to a newsgroup? Chad Z. Hower aka Kudzu
7/21/2005 8:51:12 PM
"Jack Nation" <jnation@mchsi.com> wrote in news:edFC05gjFHA.3936@TK2MSFTNGP10.phx.gbl:
[quoted text, click to view]

You just want to post the jpg as a file attachment? I can give you some code for that.




--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Re: How to send a small jpeg to a newsgroup? Jack Nation
7/22/2005 1:43:46 PM
Hi Chad: You said if I just want to post the jpg as a file attachment? I can
give me some code for that.

My Response: I would appreciate the code you refer to.
--
Sincerely,
Jack Nation

[quoted text, click to view]

Re: How to send a small jpeg to a newsgroup? Chad Z. Hower aka Kudzu
7/22/2005 10:55:18 PM
"Jack Nation" <jnation@mchsi.com> wrote in
news:OmzSJ1ujFHA.3784@tk2msftngp13.phx.gbl:
[quoted text, click to view]

Yes, but give a person some time. :) There are things other than newsgroups. I had to wait around at an
airport for a 4 hour late plane today. ;(

I'll try post it tonight.




--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Re: How to send a small jpeg to a newsgroup? Chad Z. Hower aka Kudzu
7/24/2005 12:00:00 AM
"Jack Nation" <jnation@mchsi.com> wrote in news:uQl$N7hjFHA.2920@TK2MSFTNGP14.phx.gbl:
[quoted text, click to view]

http://www.hower.org/temp/nntp.zip (Complete project)

It uses the Indy assembly, but thats free to use. I've included it in that zip, but for more information:
http://www.indyproject.org

The sample code is:

using (NNTP xNNTP = new NNTP()) {
xNNTP.Connect("msnews.microsoft.com");
try {
Message xMsg = new Message();
xMsg.Subject = "Test Message from Indy";
xMsg.From.Address = "null@nowhere.com";
xMsg.Body.Text = "This is a test message.";
xMsg.NewsGroups.Add("microsoft.test");
new AttachmentFile(xMsg.MessageParts, System.Environment.CurrentDirectory + @"\..\..
\App.ico");
xNNTP.Post(xMsg);
Console.WriteLine("Message posted");
} finally {
xNNTP.Disconnect();
}
}


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Re: How to send a small jpeg to a newsgroup? Jack Nation
7/24/2005 4:08:03 PM
Thanks Chad! Got your email. Will now see if I can work it.
--
Sincerely,
Jack Nation

[quoted text, click to view]

Re: How to send a small jpeg to a newsgroup? Chad Z. Hower aka Kudzu
7/25/2005 12:00:00 AM
"Jack Nation" <jnation@mchsi.com> wrote in news:OQbLTPJkFHA.2444@tk2msftngp13.phx.gbl:
[quoted text, click to view]

For other readers - I'll eventually take that link down, but Ive uploaded it (and a mini article) to
Code Project:
http://www.codeproject.com/useritems/NNTPPost.asp



--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

AddThis Social Bookmark Button