• Post Reply Bookmark Topic Watch Topic
  • New Topic

seding a image in a mail

 
shippu devaraju
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I have written a program to send Html page throgh mail,using java mail package.in that what i did is, in my java program i am reading Html file with Buffer Reader.if there is no image in my html it is working fine. but if html have any image that image is not displaying in mail(i.e o/p). in image's place only white box is coming.
I would be thankfull to you if you can give a solution for me.
with the following code i am reading html file
String line;
String filename = "example3.html";
try{
BufferedReader in =
new BufferedReader(
new FileReader( filename ) ); //
System.out.println( "Reading..." );
while ( ( line = in.readLine() ) != null ) {
line1=line1+line;
}
}catch(Exception e){}
 
shippu devaraju
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
some more details of above request .
my
1) html file,2)java file,3)image file are in my local directory.i.e c:/shippu/examples
thaks in advance
bye
shippu
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!