BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-24-2008, 04: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, 10: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

Mitel SX-200 MX Controller VoIP Phone System PBX 50004357
$429.95
Mitel SX-200 MX Controller VoIP Phone System PBX 50004357 picture(Lot of 2) Avaya 9611G IP Office Desk IP VoIP Phones 700480593
$119.99
(Lot of 2) Avaya 9611G IP Office Desk IP VoIP Phones 700480593  picturePolycom SoundPoint IP 330 SIP VOIP Phone and Stand 2201-12330-001
$24.5
Polycom SoundPoint IP 330 SIP VOIP Phone and Stand 2201-12330-001 pictureLot of 11 Cisco VoIP IP office phones, used and tested, great condition
$429.0
Lot of 11 Cisco VoIP IP office phones, used and tested, great condition pictureLot of (10) NEW in Box Avaya 1151B1 700227242 VOIP POE IP Phone Power Supplies
$99.99
Lot of (10) NEW in Box Avaya 1151B1 700227242 VOIP POE IP Phone Power Supplies  picture






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