A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
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
put image 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
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Converting image to byte array in j2me
byte array to inputstream
servlet applet commnication
Convert audio file into bytes
byte array of byte arrays.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014