Results 1 to 10 of 10

Thread: Compressing files, zip utility

  1. #1
    Junior Member
    Join Date
    Nov 2015
    Posts
    6

    Compressing files, zip utility

    Hi all,
    Can you use the Fox Pro libraries to compress files in Lianja?
    Example http://www.sweetpotatosoftware.com/f...ompression.zip
    https://www.sweetpotatosoftware.com/...mment-support/

    There are other ways for Lianja?

    Thanks
    Ario

  2. #2
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    Hi Ario,

    You should specify target OS. For Windows you can use COM/Activex.
    Also look for corresponding libs in Python or PHP:
    you can use the EXECPYTHON ( ) built-in function.
    There is also the same functionality available with PHP using EXECPHP( ).
    Lianja can integrate Python, PHP and JavaScript code in with VFP code.
    http://www.lianja.com/community/show...-Documentation

    http://www.lianja.com/community/show...ption-FTP-HTTP

    Josip
    Last edited by josipradnik; 2017-10-10 at 06:19.

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,359
    Blog Entries
    22
    Hi Ario,

    The chilkat extension for Lianja is available for Windows, Linux and MacOS.
    https://www.chilkatsoft.com/

    There are many feature rich classes specifically built for Lianja including zip/unzip and other compression libraries.
    https://www.chilkatsoft.com/refdoc/lianjaZipRef.html
    Last edited by barrymavin; 2017-10-10 at 06:43.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,187
    Hi Ario,

    we use the Chikat libraries for a number of purposes in VFP and Lianja. The integration with Lianja is particularly smooth (and described well on the Lianja site). The Zip options available are very handy in various scenarios.

    Hank

  5. #5
    Junior Member
    Join Date
    Jul 2020
    Location
    Seattle
    Posts
    1
    Quote Originally Posted by l.pippi1 View Post
    Hi all,
    Can you use the Fox Pro libraries to compress files in Lianja?
    Example http://www.sweetpotatosoftware.com/f...ompression.zip
    https://www.sweetpotatosoftware.com/...mment-support/

    There are other ways for Lianja?

    Thanks
    Ario
    What's the update on this? Can you use the libraries? I was planning on building an online casino using Lianja and this could really help in setting up everything. Any update on this would be greatly appreciated. Cheers!

  6. #6
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,187
    Hi Ben,

    No. An FLL is a Fox-specific file.

    I use Chilkat controls in VFP and in Lianja.

    https://www.example-code.com/lianja/zip_one_file.asp

    If you go with Chilkat, I have some wrapper routines in Lianja that I use to work with Chilkat (so fewer steps are required). Let me know and I'll get them to you.

    Hank

  7. #7
    Hi benrayburn,

    I posted a two minute video on how you can easily zip files in Lianja with a call to python.
    You do not need to know anything about python to get it to work.


    Here is the link

    https://youtu.be/mCd6JpqBMF0


    Here is the python code:

    from zipfile import ZipFile

    def zipmyfile(filetozip,zipfilename):
    ZipFile(zipfilename,'w').write(filetozip)


    Here is the call from lianja:
    filetozip = "c:\\lianja\\apps\\zip\\test.txt"
    zipfilename = "c:\\lianja\\apps\\zip\\test.zip"
    o = loadlibrary("lianja_python_zip.py")
    execpython("zipmyfile('"+filetozip+"','"+zipfilena me+"')")
    This is just how I would do it.
    Let me know if you have any questions.

    Herb
    Last edited by hmischel@diligentsystems.com; 2020-07-15 at 12:32.

  8. #8
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,187
    Very nice, Herb.

    Did you use a bit of Python in your flagship app for image manipulation?

    Hank

  9. #9
    Hi Hank,

    I use the python opencv libraries extensively for the image manipulation and use that in tandem with scikit-learn (sklearn) for the support vector machines (which in my case has proven more precise than random forest) along with scipy, numpy and the rest of the data science toolkits.
    With my ability to glue all of that together with Lianja, I can have fast local persistent storage, fast image displays and a central hub that lets me move efficiently between all the objects and displays.
    The speed at which I am able to respond to clients needs for enhancements is unparalleled.
    I simply can't imagine how I could have built this application without Lianja.

    The heads of every major lab and most studios in hollywood have heard of this system.
    Have a look at the promo we updated. You will notice it is all in Lianja.

    https://www.diligentsystems.com/diligentandyou.mp4

    Herb

  10. #10
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,187
    That is fantastic.

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us