Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to convert byte array to zip file

  1. #1
    Junior Member
    Join Date
    May 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to convert byte array to zip file

    Hi everyone,

    Please help me out to solve this issue:

    I have a zip file which contains many folders and files. I converted this to byte array and stored in the database. On request, I have to retrieve the byte array and convert to zip file.

    Can someone help me with code to convert byte array to zip file.

    Thanks,
    Ramya Baskar

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to convert byte array to zip file

    I converted this to byte array
    Can you explain how the file was converted? If the array contains all the bytes from the original and nothing else, it should be possible to write the bytes to a file with an extension of zip to restore a copy of the original file.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Byte Array of SVG to Image file
    By JavaCoffee in forum Java Theory & Questions
    Replies: 1
    Last Post: June 27th, 2013, 02:57 PM
  2. [SOLVED] [Asking] Convert String to Byte Array
    By ardisamudra in forum Java Theory & Questions
    Replies: 8
    Last Post: October 30th, 2012, 09:58 AM
  3. Replies: 0
    Last Post: June 19th, 2011, 02:16 AM
  4. How Convert a Byte array to a image format
    By perlWhite in forum Algorithms & Recursion
    Replies: 7
    Last Post: February 19th, 2011, 03:16 PM
  5. Convert Vector to Byte Array
    By perlWhite in forum Java Theory & Questions
    Replies: 0
    Last Post: August 25th, 2009, 05:45 AM