• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

network transfer of image

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just wondering... Why are you writing the byte array into a ByteArrayOutputStream?
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to check out my post from March 21st on this topic.
Sending Image to Server
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic