Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 13
Registered: ‎11-12-2008
My Device: Not Specified

Re: Https with BlackBerry

Thanks for your detail comments. Sorry, I forgot to mention that for the loop of write, variable offset and size should be reset. They should be

 

int offset = 0;
int size = b.length;
while (offset < size)
{
    int ldataSize = Math.min(256, size - offset);
   os.write(b, offset, ldataSize);
   offset += ldataSize;                   
}