• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

problem in sending image from applet to servlet

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic