locked
Extension Suggestion / Question - Allowing Archives? RRS feed

  • Question

  • Would it be possible for someone to make an extension that allows SmallBasic to access archive file formats to allow for compressed and more ordered storage of resources?
    Saturday, October 8, 2011 6:37 PM

Answers

  • Of course it's possible.

    Data Extension has support to compress and decompress file using Gzip.

     


    Sorry My Bad English
    • Proposed as answer by AirWaves Sunday, October 9, 2011 10:47 AM
    • Marked as answer by litdev Monday, October 10, 2011 6:23 PM
    Sunday, October 9, 2011 7:28 AM

All replies

  • I don't believe there are any zip archive .Net components native to .Net (zip is not MS) - anyone writing an extension to do this would need to purchase a library or find a free open source version - having obtained a library or source code for an archive it would be pretty easy to write an SB extension - perhaps someone wanting an extension project will have a go.  Or you could use command line archiving coupled to batch files called from SmallBasic using one of the extensions that can start external process (Spawn, Data etc).
    • Edited by litdev Saturday, October 8, 2011 7:58 PM
    Saturday, October 8, 2011 7:52 PM
  • Of course it's possible.

    Data Extension has support to compress and decompress file using Gzip.

     


    Sorry My Bad English
    • Proposed as answer by AirWaves Sunday, October 9, 2011 10:47 AM
    • Marked as answer by litdev Monday, October 10, 2011 6:23 PM
    Sunday, October 9, 2011 7:28 AM
  • Hadn't spotted that option in your extension, for a single file compression/uncompression not reading other zip file formats such as WinZip, then Gzip is ideal.

    Gzip can't uncompress normal zip files (see here), only its own gz files and can't handle multi-file archives or encryption etc.  Perhaps consider 7-Zip for a free OpenSource alternative to WinZip with more compatibility than Gzip.

    Sunday, October 9, 2011 1:39 PM