BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-24-2008, 05:44 AM   #1 (permalink)
New Member
 
Join Date: Sep 2008
Model: -
PIN: N/A
Carrier: -
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Insert a sample picture message /camera picture to MS SQL database from Blackb

Please Login to Remove!

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
Offline  
Old 09-24-2008, 11:57 PM   #2 (permalink)
New Member
 
Join Date: Sep 2008
Model: -
PIN: N/A
Carrier: -
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any helps would be greatly appreciated

thanks
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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