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

EXFO FTB-200-V2 MAINFRAME with FTB-7300E-234B SM OTDR Module
$13780.0
EXFO FTB-200-V2 MAINFRAME with FTB-7300E-234B SM OTDR Module pictureAvanex APNSHV01UX Mainframe
$112.0
Avanex APNSHV01UX Mainframe  pictureAndo AQ2140 Optical Lightwave Multimeter Power Meter Mainframe & GPIB Cable
$245.0
Ando AQ2140 Optical Lightwave Multimeter Power Meter Mainframe & GPIB Cable  pictureHameg HM8001-2 8001 Dual Mainframe w/ HM 8042 and HM8030-5 Modules
$650.0
Hameg HM8001-2 8001 Dual Mainframe w/ HM 8042 and HM8030-5 Modules pictureMKS 260MF-1SPPC Modular Flow Controller Main Frame with 2 Type 261 Displays
$248.81
MKS 260MF-1SPPC Modular Flow Controller Main Frame with 2 Type 261 Displays picture






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