Results 1 to 1 of 1
- 04-11-2009, 11:33 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 5
- Rep Power
- 0
Converting Image to byte array[] ?
Hi everyone,
I'm trying to send an image stored in midlet to a servlet through http. However to do this, the midlet has this method that retrieves an Image type. I need to convert from Image to a byte array[] or something that can be sent through a DataOutputStream, any ideas?
Java Code:DataOutputStream dos = conn.openDataOutputStream(); Image ima = data.getImg(); dos.writeUTF(data.getName()); dos.writeUTF(data.getTel());
Similar Threads
-
Receive uploaded image / video (byte array) from j2me on jsp.HOW???
By angelicsign in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 06-29-2010, 06:21 PM -
How to display image from byte array in JPANEL
By waqasdaar in forum AWT / SwingReplies: 0Last Post: 03-22-2009, 12:11 AM -
Converting multiple banded image into single banded image... Image enhancement
By archanajathan in forum Advanced JavaReplies: 0Last Post: 01-08-2008, 05:29 PM -
Converting a byte[] into Sound
By savage82 in forum Advanced JavaReplies: 1Last Post: 11-21-2007, 11:57 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks