yeah, sounds strange, to me anyway. a friend mentioned that a client wanted to display a jpg image as html. well i said you could put an image tag into an html document and call it that way and he said no, the client says you can call it as html. so i says just call up the image, straight up. and he says no..lol....the client says it can be called up as html. so what am i missing here or is the client an idiot?
There are actually two ways of embeding images into the html itself, though why he'd want to do that, no idea. First method: <img src="data:image/gif;base64,[...]"> which is basically the image encoded inline as base64 content. Second method: javascript:'GIF89a\1\0\1\0\200[...]\1\0;' This uses a javascript url to supply the value for the src= attribute of an IMG element. Do note that both methods are flakey and should really be avoided. edit: very confusing post, does he want to embed the image in html, or does he want to display a jpg image for example when an html pages is called up?
Maybe the just mean the file path, and are using html as a catch all for just seeing a jpg as a page: site.com/images/image.jpg ?
that was one of my suggestions, but no, thanks for all who posted. maybe someone else has another idea. i'll forward this thread to my friend.