How to send a small jpeg to a newsgroup?

J

Jack Nation

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.
 
C

Chad Z. Hower aka Kudzu

Jack Nation said:
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.

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

Jack Nation

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.
 
C

Chad Z. Hower aka Kudzu

Jack Nation said:
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.

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.
 
C

Chad Z. Hower aka Kudzu

Jack Nation said:
Yes, I would like that file attachment procedure.

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 = "(e-mail address removed)";
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();
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top