HI i', a newbie here , im trying to insert a sample pictures/camera pictures in to my MS-SQL database
with the help of this forums ***.blackberryforums.com/developer-forum/83082-displaying-sample-user-pictures-application.html
i could able to read the pictures which is in SDCard and also in Store
i have already created my Webservice method in java if i type this URL in a browser along
giving some static parameters i gets the xml resonse and the value is also got inserted into the database!
"----://localhost:8080/axis/services/MIScreenSoap?method=InsertImageRequest&imageName=L illy.jpg&imagesize=12342;
HERE is my problem
1. i have tried calling the webservice URL from the fieldchange listener class
"----://localhost:8080/axis/services/MIScreenSoap?method=InsertImageRequest/"+getFieldData() but resulting failure.
when i get the particular url from the sysout and paste it in the browser everything works fine ... but i dont know why i could not able to the call the webservice when i clicked the button ? :(
2. i literaly dont know what all the information for inserting an image for example (IMAGE name , IMAGE size , then wat shld come ?(is that this image value ( EncodedImage image = EncodedImage.createEncodedImage(data,0,data.length );) ))
Code:
if (fconn.exists()) {
InputStream input = fconn.openInputStream();
int available = input.available();
byte[] data = new byte[available];
input.read(data, 0, available);
EncodedImage image = EncodedImage.createEncodedImage(data,0,data.length);
Bitmap b = image.getBitmap();
BitmapField picture = new BitmapField(b);
// add(picture);
add(new LabelField("Data Length:" + data.length));
}
b'cos the inserted image from the blackebery will be viewed on the portal ?
PLease someone help me
[Note : pls replace (----) with (http) - me not allowed to post links ]
Thanks