The Artima Developer Community
Sponsored Link

Java Answers Forum
file attachment

2 replies on 1 page. Most recent reply: Apr 3, 2002 12:18 PM by Maysoon

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

file attachment Posted: Apr 2, 2002 2:39 PM
Reply to this message Reply
Advertisement
hello ..

i am writing now an email program in java using sockets
programming ,this project is for intranet..

i did not use any thing from javax.mail;

but i built every thing myself..but now i do not know
how to send an attachment in this program in sockets.
i only send text messages as string via socket to reach
the server then the server put it in a file when any
one request this message from his inbox the server
open the file and send the contents of it as a string
to the client.
but what about images how can i do this....


Yousuf

Posts: 19
Nickname: saeed
Registered: Mar, 2002

Re: file attachment Posted: Apr 2, 2002 11:25 PM
Reply to this message Reply
Hello my dear friends Maysoon..
Have you refered any RFC for SMTP(rfc 821) and POP3(rfc 1939,1081)? for an attachment there is seperate RFC 2045,2046,2048(MimeType).Your attachment will go along with your text seperated by well defined boundries given in rfc.So pls consult rfc's . If you still have problem then contact me at "yousuf@security-park.com"
Bye..
Yousuf

Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

Re: file attachment Posted: Apr 3, 2002 12:18 PM
Reply to this message Reply
Hi ..

yosouf ,i don not about these things ,but i am using
socket programming to do email,but i do not know how
to do this in sockets..

thanks

Flat View: This topic has 2 replies on 1 page
Topic: saving objects on a file Previous Topic   Next Topic Topic: Java to load XML doc using DOM

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use