You are on page 1of 6

Peer to Peer Connection and Storage Sharing

Umesh Kodgule, Ashwini Patil, Nikhil Agrawal Pranjali Kulkarni,  Jayanti Runwal, Harshwardhan Goyal
Department of Information Technology and MCA, Department of Information Technology and MCA,
Vishwakarma Institute of Technology, Pune, Maharashtra, Vishwakarma Institute of Technology, Pune, Maharashtra,
India India
{umesh.kodgule & ashwini.patil16 & {pranjali.kulkarni16 & jayanti.runwal16 &
nikhil.agrawal16}@vit.edu harshwardhan.goyal16}@vit.edu

                                                                              
Abstract - This paper presents an application which has an the file, then it can be shared with known people, so that when
easy approach to use memory in a mobile phone effectively it is required we can take all the splitted parts and merge them
without using any hardware .For doing this task, the best way in one file.
can be to split a present file into multiple small files and it can
be  shared   among  other   users(the  file  can  be  splitted  into  a Sometimes, there can be a need to upload a file to the internet
number equal to the number of users available for sharing the but with the current network speed it is a difficult task. You
splitted files)and can be retrieved later whenever required. may also need to extract a small part of a text or music file.
For splitting, user chooses the file to be splitted (ex: .txt,.raw). With this app, the above problems can be easily solved. This
The chosen file is read and written into sequence of files (all app splits a given file and shares it to different users.
newly created) and stored in app’s storage. The splitted file is Generally, android apps use three types of storage space: for
shared among users. It is rebuilt when user chooses to join the the   apps'   data   files,   for   the   apps'   cache   and   for   the   apps
file. The splitted Image files can be further used for Image themselves. Those caches can grow quite large, yet they are
Processing. reported as free space by Android ­­ though in fact that space
is not available as a working space for app installation.

Index Terms – Splitting, Merging, Sharing, Storage
1.   Creating   an   android   app   helpful   for   users   who   have
problem of insufficient storage space.
I. INTRODUCTION
2. The output will be such that users can store large files by
In the last decade, there have been remarkable changes in dividing   the   files   amongst   other   users   (with   their   consent)
technology. Users have always faced the problem of memory which do not fit into their storage space. 
storage   due   to   increase   in   digital   data   and   its   usage. 3. The whole process has been divided into small tasks.
Companies have been trying all this while to overcome this a. Splitting of the existing file into multiple parts.
problem by enhancing their hardware. The main focus of this b. Dividing the existing file amongst the other users who have
project   was   to   overcome   this   problem   using   software enough storage space on their device to store the remaining
technologies. An application was to be developed which uses part of the file.
minimum   storage   for   itself   and   along   with   this,   solves   the c. Joining the entire file again whenever needed by collecting
problem of insufficient storage. all its parts from all the users.    
 4. Objectives of the project:
File splitting and merging is involved in many applications of a. Effective usage of memory.
computer   science   and   is   a   fundamental   concept   in   many b. To solve the problem of limited storage.
aspects. c. Increase  phone speed  due  to efficient  use  of storage
space.
Many Papers are published on Splitting and Merging of Files  5. The app has been designed specifically for a group of users
but no one has proposed the idea that it can be helpful  for who  wish  to  make   effective  usage  of  memory  by  avoiding
making the efficient use of storage. Our Application can Split repetitive storage of data. 
 6. The intermediate splitted file can also be used for various actual  file,n   being   the   number  of   peers  currently   using   the
purposes such as processing of image, parallel processing etc. application).

                  II. Literature Survey 3. If the user chooses to split any file, the app will display the
files present on the device from which he can choose what file
has   to   be   splitted.   Then   that   file   undergoes   the   splitting
One of the existing applications­File Splitter and Joiner­is an
process   in   which   the   file   is   generally   split   into   a   specific
application   that   helps   you   to   split   any   files   into   smaller
number of new files (say 5 considering the number of peers
chunks based on user specified parameters .These chunks files
currently   using   the   app)   and   then   those   new   files   can   be
can be easily uploaded ,sent  by mail, it can also rejoin the
viewed through the app.
chunks into the original file.
One disadvantage of this application is that it does not have a
4. Also the original file has to be deleted. This is done during
feature for sharing.
the formation of the new files since there must be minimal
The splitted file (or joined file) has to be separately shared
usage of memory.
using another sharing application.

5. After the splitting process has been completed, sharing of
Also,   many   of   the   existing   applications   require   internet
the splitted files is the next task to be done.
connection for sharing purpose and have limitation their file
size.
6. For sharing, the user will ask permission from those peers
to whom the splitted files have to be shared. If that is granted
In another existing application­File Splitter Project, they have
the next task will be to share the file (which has been already
handled a situation where we need to send large sized files
split) to those peers. 
without any loss of data and hacking of data in network. But
we can’t send large sized data at a time through mail. In order
7. Unless the user does not require the file again that file will
to solve  this problem  they  have  implemented  a  file  splitter
remain  with the other  peers  in splitted  parts  (i.e.  each  peer
which will divide large files in to small sized files and encrypt
having a part of the file). They won’t have a problem with
each   file   and   then   send   data.   In   order   to   decrypt   data   at
keeping this part of the file in their memory since the amount 
receiver side we use decryption key and same software is used
to attach each single file in to large file without any loss of
of storage used will be very less compared to the actual size
data.
of the file.
 In this internet service is required and there is no option for
joining.
8.When the user requires the file again for any purpose, he
has to collect all the parts of the original file from those peers
to whom he had first shared the file and then join all those
    III. Algorithm parts using the app.

1.The app contains a main activity which allows the user to
choose what task has to be performed viz,split an existing file
into multiple files,or to join existing files into a single file or IV. Flow-Chart
to share some of those files to other peers in the network if the
user faces a problem of insufficient storage space.

2.Basically,what the user can do is, if he/she has a problem of
insufficient storage space then some of the existing files can
be splitted and  the splitted files can be  shared  to the peers
(who won’t have a problem of storing the file since the size of
the splitted file will be 1/nth times compared to the size of the
                   
            V. Experimental Analysis

For Splitting:

Text file size Array/Buffer Buffer (512KB)


(1MB) Timing Timing
25.09 MB 0.82 sec  0.90 sec
52.53 MB 1.02 sec 1.30 sec 
108 MB 2.04 sec 2.20 sec
210 MB 3.70 sec 5 sec
264 MB 3.85 sec 6.78 sec
525 MB 7.43 sec 12.06 sec

Application Images:
                VI. Future Scope

1.)   The   chunks   of   splits   can   be   encrypted   and   stored   on


various servers of different type of cloud zones. This system
will   be   comparatively   effective   than   existing   security
standards.
2.) If the file is an image, the splitted parts of the image can
be   used   for   further   processing   .Videos   can   also   be   edited
further   after   splitting(if   the   splitting   process   is   made   more
specific)   and   a   lot   of   multimedia   applications   are   thus
possible through this splitting.
3.) At present, the app is capable of splitting only a few type
of file formats but in future it can be expanded to all types of
files.
4.) If we need to upload a file say 30 MB using g­mail then it
might not be possible as g­mail restricts the file size to less
than 30 MB, so if we use this application and then send the
splitted parts by uploading it and can retain the original file by
joining the splitted parts.

                   VII. Conclusion
In   this   paper,   we   have   reviewed   method   for   splitting   and
merging   files   using   an   application   developed   in   java   and
android studio. All types of files cannot be splitted through
this application but it we can overcome this disadvantage.
 
Advantages:
This app is compatible for every android user
It is easy to use
No need of other sharing application to share files generated
by this app
Main advantage: It solves Storage problem
This app can also be used to send files via e­mail. Since email
has limitation for size of file (i.e. file should be smaller than
50mb), therefore we can use this application to split the files.
The advantage of splitting the file is that, we can upload 
more   download   the   splitted   file   easily,   when   there   is
restriction in size of the file to be uploaded or downloaded.

       

       VIII. Acknowledgement
              
   We would like to express our deep and sincere gratitude to
our Head of department  Prof. (Dr.) Premanand P Ghadekar
whose  constant  encouragement  and   guidance  helped   us put
extra effort and also do a lot of research on our project. We
would also like to thank our guides Prof. U. B. Kodgule for
comments that greatly improved the manuscript and also for
sharing  with  us their  pearls  of  wisdom  and  valued  insights
during the course of this project. We take full responsibility of
any errors in our research paper and they should not tarnish
the reputation of our esteemed guides. 

           IX. References

[1]https://developer.android.com
[2]https://stackoverflow.com

You might also like