Hey-ho,
I'm having a problem with some binary data read into a string.
Basically I open an icon file "rb", read() it into a string, then
spit it back down on a web request for /favicon.ico.
It works fine under unix, but under Win32 Python 2.4.2 (#67, Sep 28 2005
...
It comes back corrupted.
Hi,
I've just started looking at Python. I am trying to resolve an issue a user is having trying to access the COM interface in our application from Python.
C++ code:
STDMETHODIMP
CMyClass::Read( const int x,
VARIANT *indexlist, // IN: "safe" array of 4-byte integ
At 01:22 PM 10/19/2005, Shad Muegge wrote:
>Hi,
>
>I've just started looking at Python. I am trying to resolve an issue a
>user is having trying to access the COM interface in our application from
>Python.
>
>C++ code:
>
>STDMETHODIMP
>CMyClass::Read(
> const int x,
> VARIANT *indexlist,
Sorry, the interface is expecting a safearray of 4-byte integers, instead it's getting a safearray of 1-byte integers. On 10/19/05, bob <
[EMAIL PROTECTED]> wrote:At 01:22 PM 10/19/2005, Shad Muegge wrote:>Hi,
>>I've just started looking at Python. I am trying to resolve an issue a>user is having
Your
code is explicitly creating a buffer object, which the win32com framework
translates as "array of bytes". Try just passing a list (or tuple) of
integers instead of the buffer.
Mark
-Original Message-From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On
Behalf Of Shad Mu
Hi list,
Could someone please tell me what I should do with
values such as msoScaleFromTopLeft? I tried:
constants.msoScaleFromTopLeft
and that didn't work.
Thanks,
--
John
___
Python-win32 mailing list
[email protected]
http://mail.python
Emlyn Jones <[EMAIL PROTECTED]> wrote on 20/10/2005 02:46:54 AM:
> In what way is it corrupted? Are you 100% sure that no extra output
> is being prepended/appended when you output the icon file data via
> HTTP? Have a look at it in emacs/notepad just to check there are no
> stray HTTP Header
> >Similarly I have a string with the IBM-extended-ASCII degrees symbol
> >(ascii 0xb0)
> >that is read in from a network-connected field device. Somehow this
ends
> >up with
> >an extended 'A' (with a single dot over it.) prepended before it.
> This question is inappropriate for this mailing l
> Date: Thu, 20 Oct 2005 10:04:24 +1000
> From: Kinsley Turner <[EMAIL PROTECTED]>
>
> I checked the icon, it seemed to be ok. I'm unfamiliar with win32
> tools, but it seemed that the data being delivered from the socket
> rendered differently from a python print() compared to a terminal
> 'type
At Wednesday 19/10/2005 21:04, you wrote:
>I think you might be correct with the headers suggestion, that was
>going to be my next point of investigation. I don't think the
>MIME type of image/bmp is acceptable to IE.
Should be image/vnd.microsoft.icon or image/x-icon, but NOT image/bmp
(icon fi
10 matches
Mail list logo