• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in sending image from applet to servlet  RSS feed

 
Nidhi Nagre
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear friends,

i have a need to send an image from applet to servlet via HttpConnection and getting back that image from applet.
i am struggling with this sice many hours and got tired by searching any post that would help me but haven't got yet.

i tried using this code but it dosent make any execution sit right. i got java.lang.NullPointerException at ImageIcon.getDescription() line;

at applet side



and this is at servlet side



i really need your help. please let me out of this headche

thanks

[ November 24, 2007: Message edited by: Nidhi Nagre ]

[ November 24, 2007: Message edited by: Nidhi Nagre ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am guessing that means that no ImageIcon object is read from the ObjectInputStream, so v.get(0) returns null.

A further guess would be that moving the v.remove(0) statement in the applet code after oboutStream.close() might fix that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!