adding Image to page without using source
i need add an image to HTML page then I need to send this page via fax. i can not use the attribute "src开发者_运维百科" Any ideas how can I do it? Maybe convert the image to byte array and then insert it to the html page?
You can try to use a "data URI".
[EDIT] If you can't use the src
attribute, then you're doomed. There are other ways to add an image to a HTML page like using a div
with background-image
but that image won't make it to the printer (and hence not onto a fax).
Why can you not use the src
attribute? Does the fax software somehow internally render the HTML without images and thus ignore it? If that or something similar is the case then you're better off trying to work around it than to try to trick it with some strange byte manipulation.
Can the fax software accept the entire page as one big image? You can add the image to the HTML as you would any other image in a web page, then use something like FireShot for Firefox to capture the entire rendered page into a single image (or split up by pages, etc.) and fax that.
精彩评论