BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 09-02-2010, 06:51 AM   #1 (permalink)
New Member
Join Date: Aug 2010
Model: 8800
Carrier: to developing blackberry application
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default doubts abt encoding image

Please Login to Remove!

i need explanation of this code. what is the purpose of "EnocdeImage.createEncodedImage(b,0,b.length)

EncodedImage ei = EncodedImage.createEncodedImage(b, 0, b.length);
Old 09-02-2010, 10:09 AM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

It is creating an image from a byte array.

This might be done (for example) when you are downloading an image from a web server, and the image is MIME encoded.

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