Decoding email attachments.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Williams

    Decoding email attachments.

    When I use this line jpg attachment, come out darker
    that it's suppose to be.

    filelne = filelne + base64.decodest ring(line)

    Tom Williams

  • Tim Roberts

    #2
    Re: Decoding email attachments.

    Thomas Williams <tom_williams_2 000_ca@yahoo.ca > wrote:[color=blue]
    >
    >When I use this line jpg attachment, come out darker
    >that it's suppose to be.
    >
    >filelne = filelne + base64.decodest ring(line)[/color]

    Compared to what?

    I can think of two possibilities. Image applications do color management
    differently. So, for example, a JPEG viewed in Microsoft's default image
    viewer wil look different from the same JPEG viewed in Photoshop.

    Alternately, if you're running Windows, you might be writing the file out
    in text-mode instead of using open('xxx.jpg', 'wb') to write it in binary.
    --
    - Tim Roberts, timr@probo.com
    Providenza & Boekelheide, Inc.

    Comment

    Working...