• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

encryption decryption of huge file

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
iam trying to encrypt and decrypting a huge file of size 1.4GB.Iam using DES 56 bit algorithmn.while encrypting iam getting "java.lang.OutOfMemoryError" ,i am reading the file using BufferedInputStream.Can anybody guide me the efficient way to read this file and encrypt it.
i have tried to run it using java -Xms250m -Xmx250m,its still giving the same error.
--prasad
 
Author
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It will help to see your code fragment responsible for encryption.
You could use classesCipherInputStream and .CipherOutputStream to do encryption and decryption of small amount of data at a time.
 
reply
    Bookmark Topic Watch Topic
  • New Topic