how to delete the attachment
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Monday, January 12, 2004 01:11 AM

this is my source codehow to delete attached file
String contentType = message.getContentType();
if (contentType.indexOf("multipart/mixed")>=0)
for (int m=0; m
BodyPart bp = multipart.getBodyPart(m);
String attachmentName = bp.getFileName("ss.jsp");
//process attachment

Re: how to delete the attachment

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, January 12, 2004 07:48 AM

It's funny, you ("achyut ramaih choudary" the author of this and a bunch of other recent questions) seem to be using jguru.com as "half of your blog"; where is the other half?

You seem to be writing down each basic question here, as you get stuck on some coding detail; these are the basic questions you do need to answer in your work, of course, and you are finding the answers, as you learn to look things up, as you should.

But you are being selfish and one-sided, in doing this without telling anyone here; you are posting questions but then not posting the answers, only posting more questions. If you are going to ask questions, at least have the courtesy to post the answers here too.

At least, that's how I think the site is supposed to work -- you're supposed to look up things yourself first before asking, because others who asked similar questions previously have also gotten them answered here, or have posted their own answers themselves.

Otherwise, if you never post the answers, just your questioning "half your blog", you are being a selfish vampire, sucking out without giving anything back to this open source free forum/repository.

About | Sitemap | Contact