BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 05-08-2008, 12:16 AM   #1 (permalink)
New Member
Join Date: May 2008
Model: 7100T
Carrier: Airtel
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Red face Convert image to byte array

Please Login to Remove!

Hi can anyone tell me how to convert an image to a byte array and viceversa...
Please give me the code if you have as i am new to BB
Old 05-08-2008, 12:24 AM   #2 (permalink)
Crimson Tide Moderator
JSanders's Avatar
Join Date: Oct 2004
Location: North of the moss line
Model: 9xx0
OS: 7.0sumtin
PIN: t low
Carrier: Verizon
Posts: 41,914
Post Thanks: 59
Thanked 241 Times in 180 Posts

Hi, please don't double your questons, thanks.
Old 05-08-2008, 02:52 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
Join Date: Apr 2008
Location: Germany, BW
Model: -
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts

see api doc for net.rim.device.api.system.EncodedImage

public static EncodedImage createEncodedImage(byte[] data, int offset, int length)

Creates an EncodedImage from bytes.
public final byte[] getData()

Returns the encoded data of this image.

A byte array containing the encoded data for this image.
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Skinner Solenoid C series valve
Skinner Solenoid C series valve picture KPM-DA005101-Solenoid-Valve-24VDC-3-5W with valve
 KPM-DA005101-Solenoid-Valve-24VDC-3-5W with valve pictureClippard Pneumatic Solenoid Valve 24 V DC 2.5 Watt With Nipple Assembly USED
Clippard Pneumatic Solenoid Valve 24 V DC 2.5 Watt With Nipple Assembly USED pictureNos 18060Nos Nitro/Alky Fuel Solenoid
Nos 18060Nos Nitro/Alky Fuel Solenoid pictureNEW ASCO 8320G176 1/4" PIPE SOLENOID VALVE RED HAT, NNB
NEW ASCO 8320G176 1/4

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.