PDA

View Full Version : Compressing files, zip utility



l.pippi1
2017-10-10, 05:33
Hi all,
Can you use the Fox Pro libraries to compress files in Lianja?
Example http://www.sweetpotatosoftware.com/files/vfpcompression.zip
https://www.sweetpotatosoftware.com/blog/index.php/2008/12/01/vfpcompression-update-fix-and-zipfile-comment-support/

There are other ways for Lianja?

Thanks
Ario

josipradnik
2017-10-10, 06:17
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/showthread.php?320-Other-Function-not-Mentioned-in-the-Documentation

http://www.lianja.com/community/showthread.php?578-Support-for-Compression-Encryption-FTP-HTTP

Josip

barrymavin
2017-10-10, 06:38
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

HankFay
2017-10-10, 10:16
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

benrayburn
2020-07-12, 20:38
Hi all,
Can you use the Fox Pro libraries to compress files in Lianja?
Example http://www.sweetpotatosoftware.com/files/vfpcompression.zip
https://www.sweetpotatosoftware.com/blog/index.php/2008/12/01/vfpcompression-update-fix-and-zipfile-comment-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 (https://mukcheck.com/) using Lianja and this could really help in setting up everything. Any update on this would be greatly appreciated. Cheers!

HankFay
2020-07-13, 02:03
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

hmischel@diligentsystems.com
2020-07-15, 12:06
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+"','"+zipfilename+"')")


This is just how I would do it.
Let me know if you have any questions.

Herb

HankFay
2020-07-15, 19:30
Very nice, Herb.

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

Hank

hmischel@diligentsystems.com
2020-07-15, 21:05
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

HankFay
2020-07-16, 00:49
That is fantastic.