This Project was developed with Java Programming under JCreator tool where server crated with Java socket programming. This project can work on any operating system but to run this application we should have at least 256 RAM. The primary aim of this entire project is to send any type of data ( including rich media files, documents, simple text messages) over the internet, to send the data from client we have used different data sending protocols like SMTP, POP, TCT, IP. No other database server required to run this project. Modules implemented in this Java application are email application for both both client and server, Inbox feature, Drafts, send mail, create new folder to store messages, read and unread mail module.

Java Source code of Inbox module for Data Transmission Using Multitasking Sockets below:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
for(int count = 0; count < EMailClient.inboxSize(); count++)
{
//GET MAIL FROM INBOX
mail = EMailClient.getMail(count);
//IF MAIL HAS BEEN READ CREATE DESCRIPTION
if(mail.getRead() == true)
{
description = (" " + "FROM: " + mail.getSender() + " " + "RE: "+ mail.getSubject() +
" " + "ATTACHMENT: " + mail.getAttachmentName());
}
//IF MAIL IS UNREAD CREATE DIFFERENT DESCRIPTION
else
{
description = ("NEW " + "FROM: " + mail.getSender() + " " + "RE: "+ mail.getSubject() +
" " + "ATTACHMENT: " + mail.getAttachmentName());
}
//ADD DESCRIPTION TO VECTOR
mailDescriptor.add(description);
}

Java Source code for View Media Attachments:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//GET PASSED IN ATTACHMENT
this.attachment = attachment;
//SET UP FILE STREAM
fileOut = new FileOutputStream(name);
//WRITE ATTACHMENT TO FILE
fileOut.write(attachment);
//CREATE NEW FILE OBJECT
file = new File(name);
//SET WINDOW TITLE
setTitle("Java Media Player");
//SET UP CONTENT PANE
pane = getContentPane();
//CREATE MEDIA PLAYER AND CONTOL PANEL
player = Manager.createPlayer(file.toURL());
player.addControllerListener(this);
player.start();

Download Data Transmission Using Multitasking Sockets Java Project with Code.