Thread: Signature Image - 'Invalid File'

  1. #1
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465

    Signature Image - 'Invalid File'

    I am trying to set an image to my signature that points to an external url image file that is located here.

    http://tonto.ulmb.com/img.jpg

    It is an image created by libgd and is constantly updated, and will always be 500 x 90 px and ~15 Kb. I can lessen these params even further, but it is no use, and I always recieve this 'invalid file' problem from my signature.

    Does anyone know why this could be happening?

    Invision Forums allow the image, but this vBulletin is a little stubborn.

  2. #2
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    The link you've posted isn't an image. What's returned is an HTML file, with a google ad, your image, and another google ad. (The image bears the same URL, which is stupid design by whomever hosts your site.)

    My first guess is that since my view (and CBoards) doesn't send a referer in the HTTP headers, they get the HTML page. When a browser requests the image in that HTML page, it'll send the referer, and get the actual image.

    Edit: Yup to the above. If I say:
    Code:
    wget http://tonto.ulmb.com/img.jpg
    I get an HTML page. If I use:
    Code:
    wget "--header=Referer: http://tonto.ulmb.com/img.jpg" http://tonto.ulmb.com/img.jpg
    I get the image. Not sure why Invision picks up on this trickery though.
    Last edited by Cactus_Hugger; 04-08-2007 at 06:31 PM.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  3. #3
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Whoa, wierd. Only like 1/2 and hour ago it was not doing that, now I do have ads, and now it is b0rked with invision also. So I don't know now, I just wanna very simple host, where I can have a CGI file uploading script, and without ads on the images. I've gone through like 4 hosts now (t35, dajoob, hostultra, ultimatemb), and it's just all flakin' out.

  4. #4

  5. #5
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Thxx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. .jp2 image file to .bmp image file using C language
    By prabs005 in forum C Programming
    Replies: 14
    Last Post: 07-07-2009, 04:02 PM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM