BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-24-2008, 04:44 AM   #1
rajeshorey
New Member
 
Join Date: Sep 2008
Model: -
PIN: N/A
Carrier: -
Posts: 6
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
rajeshorey
New Member
 
Join Date: Sep 2008
Model: -
PIN: N/A
Carrier: -
Posts: 6
Default

Any helps would be greatly appreciated

thanks
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD

$11.99



Dedicated Server 8GB RAM + 500GB HDD + 4 Core CPU picture

Dedicated Server 8GB RAM + 500GB HDD + 4 Core CPU

$103.00



MRG-3800V-R 800W Server Power Supply, Untested picture

MRG-3800V-R 800W Server Power Supply, Untested

$249.99



RDP SERVER / VPS SERVER 2 GB RAM + 80 GB HDD picture

RDP SERVER / VPS SERVER 2 GB RAM + 80 GB HDD

$7.99



Used & Tested FSP FSP300-701UJ Server Power Supply picture

Used & Tested FSP FSP300-701UJ Server Power Supply

$153.70



NEW Moxa NPORT 5650-8-DT RS232 422 485 Device Server picture

NEW Moxa NPORT 5650-8-DT RS232 422 485 Device Server

$864.23







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