getting an image from a server.

This is a discussion on getting an image from a server. within the Windows Programming forums, part of the Platform Specific Boards category; I'm attempting to get an image from a server using the HTTP request but the image won't display right. I'm ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    81

    getting an image from a server.

    I'm attempting to get an image from a server using the HTTP request but the image won't display right. I'm just connecting with a telnet server and the content-length field matches what the file should be but its comming out bigger and when i look at the first few lines of the image their different then the image when i just do a save as. heres when i been using didn't know if i was missing anything


    GET /images/logo.gif HTTP/1.1
    Host: www.google.com
    Accept: */*
    Connection: Keep-Alive

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,668
    Do you know how to display a GIF properly?

    gg

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    81
    i'm just saving it as a gif right now and using a normal image program to display it so its nothing on that end.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 04:17 AM
  2. Serve image with C++ http server
    By seaders in forum C++ Programming
    Replies: 0
    Last Post: 06-11-2008, 05:40 AM
  3. Where's the EPIPE signal?
    By marc.andrysco in forum Networking/Device Communication
    Replies: 0
    Last Post: 12-23-2006, 07:04 PM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21