• Post Reply Bookmark Topic Watch Topic
  • New Topic

BufferedImage to OutputStream

 
saad sal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a BufferedImage object using



What I want to do is write this image2 object to the OutputStream.
Should I convert the image2 object into a byte[] first or can it be written directly to the OutputStream object.

ps what i am trying to do is send the image2 object from the server through the OutputStream to the client over a bluetooth connection which has already been established.
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!