BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-08-2008, 12:16 AM   #1
KCSK
New Member
 
Join Date: May 2008
Model: 7100T
PIN: N/A
Carrier: Airtel
Posts: 3
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
Offline  
Old 05-08-2008, 12:24 AM   #2
JSanders
Crimson Tide Moderator
 
JSanders's Avatar
 
Join Date: Oct 2004
Location: North of the moss line
Model: Z30
OS: 7.0sumtin
PIN: t low
Carrier: Verizon
Posts: 41,921
Default

Hi, please don't double your questons, thanks.
Offline  
Old 05-08-2008, 02:52 AM   #3
Ivanov
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Default

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

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

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

Returns the encoded data of this image.

Returns:
A byte array containing the encoded data for this image.
Offline  
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Peak, Atlas DCA55 Semiconductor Tester,  picture

Peak, Atlas DCA55 Semiconductor Tester,

$97.99



5pcs STK412-170 Original Pulled Sanyo Semiconductor picture

5pcs STK412-170 Original Pulled Sanyo Semiconductor

$49.00



Peltier Cooler Thermoelectric DIY Semiconductor Refrigeration Cooling Fan Module picture

Peltier Cooler Thermoelectric DIY Semiconductor Refrigeration Cooling Fan Module

$21.11



Thermoelectric Cooler Peltier System Semiconductor Water Chiller Aquarium 180W picture

Thermoelectric Cooler Peltier System Semiconductor Water Chiller Aquarium 180W

$31.74



A70P20-4 A70P204 Mersen Fuse Semiconductor 20 A / 700V, Sold Per Pack Of 10 picture

A70P20-4 A70P204 Mersen Fuse Semiconductor 20 A / 700V, Sold Per Pack Of 10

$155.70



Fuse, Semiconductor, Blade, FWP, 175A, 700V picture

Fuse, Semiconductor, Blade, FWP, 175A, 700V

$283.43







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