Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

network transfer of image

 
Sven Griep-Raming
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello..
I am converting a J2SE application right now where I need to transfer an image across network.
Right now the image is encoded into a bytearray and then send the bytearray. As it seems this is not possible with J2ME, at least make a bytearray out of an image. If I am wrong please correct me and tell me how to do it
current code:

So, what other choices do I have to send an image file to another applet across network (client j2me (and j2se) / server j2se) ?
greetings
Sven Griep-Raming
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wondering... Why are you writing the byte array into a ByteArrayOutputStream?
 
Greg Schwartz
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to check out my post from March 21st on this topic.
Sending Image to Server
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic