|
by: Greg Bakken |
last post by:
I am writing a python program that recieves 'compressed and encoded'
strings from another piece of software. I can successfully uncompress
and decode the strings via
import base64, zlib
def getString(s):
s = base64.decodestring(s)
s = zlib.decompress(s, -15)
return s
|
by: Alan Toppen |
last post by:
I was unable to use the ZipFile class in the zipfile module in Python2.4. I
got an error that zlib could not be found. Comparing my Python 2.2
installation I noticed Python 2.4 was missing a certain file:
/usr/lib/python2.2/lib-dynload/zlibmodule.so. Unable to find a more elegant
solution, I copied the file from my Python 2.2 directory into my Python 2.4
directory. When running my Python script it gives a warning:
...
|
by: Peter |
last post by:
Hi,
Not sure if this is a proper ng to post this question.
Is here anybody who has used zlib? I downloaded 1.2.1 of zlib from
www.gzip.org/zlib (for windows 98/nt/2000/xp), and used it in my program to
zip/unzip files. When I use the zipper class in zlib to zip a folder, I got
a zip file with the SAME SIZE of zip file created (on the same folder) with
the 'ZipTest' program downloaded from the site. But the problem is that the
zip file...
|
by: Laszlo Zsolt Nagy |
last post by:
Sorry, I realized that the import zlib was not executed from my
(working) service.
So here is the question: why can't I use zlib from a win32 service? Is
there any way to make it working?
>-------------
>Python could not import the service's module
> File "T:\Python\Projects\NamedConnector\Service.py", line 17, in ?
> from Processor import *
> File "c:\Python\Projects\NamedConnector\Processor.py", line 35, in ?
|
by: Dennis Powell |
last post by:
Does anyone have a successful implementaion of the zlib.dll in VB. Net they
can show me. I'm writting a class encaplsulating zlib functionality and I
keep getting a System.NullReferenceException (Object reference not set to an
instance of an object) when I try to call the dll's compress function.
The function in the dll is declared as such:
int compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong
sourceLen)
I've...
|
|
by: Sankar |
last post by:
Dear all,
I am programming in Linux , wherein I need to know a couple of
things.
1) Does an API exist that can copy file onto another file ( an API
equivalent of 'cp') ?
2) Is there an API that tells me the disk usage ( equivalent for
cmdline
|
by: shamzz |
last post by:
Hi,
I've compiled (configure/make/make install) Python 2.4.4 from source
on Suse Linux Enterprise Server 9 (x64).
I need Python to be compiled with Zlib so that I can compile and use
Zope.
After installing Python, zlib doesn't seem to have been compiled with
it, I've checked the /usr/local/lib/python2.4/lib-dynload/ folder and
|
by: ZedLep |
last post by:
Hello,
First of all I'm a relatively inexperienced C++ programmer so this may seem a simple question to answer.
I'm trying to use zlib from www.zlib.net to decompress some data. However I run into an error when I try to compile the program :
E2015 Ambiguity between 'Byte' and 'System::Byte'
And the offending code (within zconf.h) is :
|
by: MZ |
last post by:
Hello!
I`ve tried to instal zlib library to use zip functions to pack files into
zip archive.
I don`t know how I have to configure zlib to make it work.
I have built up php.ini file and I`ve put such line
--with-zlib=/home/domena_nazwa/domains/test.com/public_html/gallery/lib/zziplib.lib
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|