Author Topic: Allow adding to zipoutputstream using setSourceExternalStream  (Read 3192 times)

boscharun

  • Newbie
  • *
  • Posts: 1
    • View Profile
Allow adding to zipoutputstream using setSourceExternalStream
« on: September 12, 2014, 08:20:09 PM »
Hi there, first off thanks for this excellent library.

Hada requirement - Want to write a zip file to dropbox using java. Dropbox api gives me a FileOutputStream. I want to write a zip using this outputStream. The problem is I can't really create any files. So adding files using ZipOutputStream can't work for me. For ZipFile, I can use setSourceExternalStream to add new files to the zip using  an inputstream.
Is it possible to support the same kind of file addition using inputStream for ZipOutputStream as well.

THanks,
Arun

HellHeavenKnight

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Allow adding to zipoutputstream using setSourceExternalStream
« Reply #1 on: October 28, 2014, 02:08:04 PM »

This post is very useful here. Read easy simplification

Bityzuei

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Allow adding to zipoutputstream using setSourceExternalStream
« Reply #2 on: September 15, 2015, 11:31:03 AM »
Backpacks information provided useful information to use it here.

 


Warning: Cannot modify header information - headers already sent in /home/content/66/5374066/html/zip4j/forum/Sources/Errors.php on line 346

Warning: Cannot modify header information - headers already sent in /home/content/66/5374066/html/zip4j/forum/Sources/Errors.php on line 347

Warning: Cannot modify header information - headers already sent in /home/content/66/5374066/html/zip4j/forum/Sources/Errors.php on line 348

Warning: Cannot modify header information - headers already sent in /home/content/66/5374066/html/zip4j/forum/Sources/Errors.php on line 351

Warning: Cannot modify header information - headers already sent in /home/content/66/5374066/html/zip4j/forum/Sources/Errors.php on line 352

Warning: Cannot modify header information - headers already sent in /home/content/66/5374066/html/zip4j/forum/Sources/Errors.php on line 353
Connection Problems

Connection Problems

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.