A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java Micro Edition
Converting image to byte array in j2me
Joined: May 19, 2006
May 19, 2006 01:56:00
I am doing a project which requires to convert my images in png format to byte array and then pass it to the server in
. Could any anyone help me???
Are there any classes which helps to do this??
Thanking all in advance
Joined: Feb 13, 2004
May 19, 2006 11:45:00
in resource folder and use input streamreader to get byte array
Joined: Mar 20, 2004
May 21, 2006 20:41:00
If you have MIDP 2.0 devices then you could you Image objects getPixels() method to get the pixel data. The server would then add the header info etc.
Everything that can go wrong will go wrong
I agree. Here's the link:
subject: Converting image to byte array in j2me
byte array of byte arrays.
Convert audio file into bytes
servlet applet commnication
byte array to inputstream
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014