Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2005, 01:28 AM
Authorized User
 
Join Date: Jun 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Insert Image

Hi everyone,

I want to ask how to insert image in the HTML code?
In my case, after i send the page through email to my friend, when he open it he can't see the pic/image in that page, so how to eliminate this problem and how to display the image when the people try to open the attached web site from the email?
Thanks!!!!!!

 
Old July 14th, 2005, 01:45 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Since the images are not embedded in the HTML, you'll need to reference their full path in the email. E.g.:

<img src="http://www.someserver.com/Images/SomeImage.jpg" />

instead of

<img src="Images/SomeImage.jpg" />

HtH,

Imar
 
Old July 14th, 2005, 02:14 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

A security conscious email client will not show linked images as they can be used to track and confirm email addresses. You need to embed the image as base 64 encoded data. You can obtain components that cretae these or it's not difficult to write your own. Try searching Google for "multipart email messages" or take a look at one you've received in its raw format.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert image in sql 2000 mangala SQL Server 2000 18 December 17th, 2007 06:11 AM
How to insert in image in a header programatically Michael109 Word VBA 2 April 4th, 2007 09:41 AM
How to insert and retrieve image? hlchuah77 SQL Server 2000 3 February 13th, 2005 11:41 AM
Insert Image Using VBA timmaher Excel VBA 1 September 3rd, 2004 10:54 AM
How to insert an image to a table ahmadnajib MySQL 1 August 20th, 2004 01:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.