views:

24

answers:

0

Hi,

I would like to know how to get over an image in to blackberry from asp.net webservice.

I have used the below code in the webservice to encode the image into bytes and convert them in to string

byte[] toEncodedBytes = System.Text.ASCIIEncoding.UTF8.GetBytes(pngFile);

string strimage = System.Convert.ToBase64String(toEncodedBytes);

When i try to retrieve the returned string from the webservice in black berry simulator i get the java null pointer exception.

Help Needed.