Sign in to follow this  
Followers 0
Kealper

Sending an image over HTTP

1 post in this topic

I'm not sure if this has been answered before, and I have no idea what to search to find out how, so I'm sorry if it was already answered.

Ok, so I'm using AutoIt as a CGI handler with Apache to turn it in to a ghetto web scripting thing, and I would like to emulate the PHP method of sending an image, but with AutoIt. I have tried different ways to read the image I want to send to the browser (binary, UTF, etc...), but I am unable to get the browser to display it correctly.

example of what I'm trying to do, in PHP:

(my php sucks, but this is the only way I can describe what I would like to do)

header('Content-type: image/png');
readfile('someimage.png');

Hopefully I described my plight.


Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0