Hi,
Using ASP and VBScript. How to convert JPEG image into a binary data? Is it
possible with a command from ASP / VBScript without having to put it into a
database first?
I want to take the JPEG image from a folder, convert it into a binary data,
and stream it to the browser. How can I do it? Can you show a short code?
Thank you for your help.
Steinar Herland - 22 Oct 2003 17:15 GMT
Not exactly the question I would expect in this group, but the .NET way to
do this would be:
Response.ContentType = "image/jpeg";
Response.WriteFile(filename);
If you'r not using .NET, you should post to a different newsgroup. If you
don't know where to insert the code, you should probably get a good book on
ASP.NET ;-)
Good luck.
PS: I posted a question asking how to cache the image (preferably on the
client/browser), to prevent the image from being downloaded each time, but I
have not found the answer to that yet. (IIS handles that fine on "static"
images)
brgds, Steinar Herland
> Hi,
>
[quoted text clipped - 6 lines]
>
> Thank you for your help.