Siemens S65 HTTPConnection

Hello,
I have a problem when sending images data over HTTP to a servlet by POST method. Once coded to base64, if the image is less that 3 KB (more or less), all data are transmitted correctly, but with higher images > 3KB, transmission is suddenly interrupted when that size is exceeded, and the reported exception is:
java.io.IOException: Error reading data
Does anyboby know why and how to solve it?
Thank you.

use mobile phone plugin

Similar Messages

  • File Creation [Siemens S65 / MIDP 2.0]

    Hi.
    I want to write an midlet that writes some data into files. I've already managed to write data to file that already exists. I did it following way:
    OutputConnection oc = (OutputConnection)Connector.open("file:///4:/foo.jpg",Connector.WRITE);
    OutputStream os = oc.openOutputStream();
    os.write(myByteArray);
    os.flush();
    os.close();
    oc.close();
    The problem is, that this way does not allow for creating new files (or requires using url "parameters" that are added after "file part" as ";x=y"). I have no objections against using com.siemens.... packages, but in the sdk i downloaded there is no documentation for the com.siemens.... packages, and API.jar does not contain even com.siemens.mp.io.file.FileConnection that is mentioned in Connector.open() documentation.
    Have anybody got idea how to do it? Or even better, where to get informations that allows this problem to be solved?
    BTW: I'm sorry for my English - I've never learnt it hard ;)

    No, you're wrong. It works. And I've tested it on my S65. It doesnot_ work in emulator, as emulator has no implementation of this classes. The classes I've merged with that standard JAR are only placeholders - I did it, becouse it was the fastest and simplest method to have the com.siemens.... classes (and javax.microedition.location....) visible for WTK (while compiling). The resulting compiled application is executable both in siemens' emulator and real device. The classess are in fact taken from S55 SDK, but this api is available since SL45i (i got this one too - great device). In siemens 65 platform it is (com.siemens... API) still available - backward compatibility, some things not available in MIDP 2.0 (at least in such a intuitive way).
    I was dreaming that I'll can afford for not using this APIs, but it was too hard (not sure if that was possible). I could probably add this siemens JAR's as a command-line parameters, but it required reading documentation. It is not something I like at night. So I just cheated WTK with little help of my favourite zip/unzip program :)
    And what else is important? I can put this "modiffied jar" in my WTK on my linux laptop and it will work. Just by replacing one file. No configuration changes.

  • IBook recognizes Siemens S55 but not sync'ing

    I bought a generic BT dongle that says that is Mac-compatible. The thing is that it can recognize devices like my Siemens S55 and a SE Z600, but when it is pairing up, it just never end setting up the phone. Any ideas?
    iBook 12 G4 800Mhz   Mac OS X (10.4.3)  

    I recently bought a Siemens S65 and this phone works fine with my Belkin F8T009 BT dongle (syncing, sending & receiving files). This hint might also work with your Siemens S55:
    http://www.macosxhints.com/article.php?story=20050502120104339
    The only problem that I have is that when I use 'Browse Device' my phone crashes. I hope that updating the Siemens Firmware will solve this problem (The firmware version of my phone: FW16). Has anybody experience with the lastest Siemens firmware (FW58) and BT on the Mac?
    Powerbook G4 - 1 Ghz   Mac OS X (10.4.3)   1 Gb RAM

  • Problem with LocationAPI (JSR179) and Siemens device

    In my Midlet i used the following code:
    class loc extends Midlet{
    public void startApp()
              Form f=new Form("Waiting...");
              f.append("Finding for location...");
              f.addCommand(cOK);
              f.setCommandListener(this);
              Display.getDisplay(this).setCurrent(f);               
              try{
                   Criteria c=new Criteria();
                   c.setHorizontalAccuracy(1000);
                   c.setVerticalAccuracy(1000);
                   c.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
                   LocationProvider lp=LocationProvider.getInstance(c);
                   f.append(found(lp)+" location provider");
                   Location loc=lp.getLocation(60);
                   f.append(found(loc)+"location");
                   QualifiedCoordinates qc=loc.getQualifiedCoordinates();
                   f.append("Alt: "+qc.getAltitude());
                   f.append("Lat: "+qc.getLatitude());
                   f.append("Long: "+qc.getLongitude());
              }catch(Exception e)
                   f.append("Exception: "+e);
              try{Thread.sleep(5000);}catch(Exception e){}
    Everything works on WTK emulator (form shows Alt:0 Lat:0 Long:0).
    But when I try this on my Siemens S65, the location provider always is null.
    I've tried to play with location permissions and criteria, but always the same result is.
    What did i wrong? Could anyone help me?
    Thanks

    Maybe your cell phone provider doesn't support the location functions...
    jc

  • How to remove a device which doesn't exist any longer

    Since Snow Leopard iSync looks for my historic device Siemens S65 when syncing with MobileMe. I then removed the device from the bluetooth-list. But iSync is still searching and giving me an error alert.
    In the iSynch menue you can add a new device but not remove an old one which is not connected.
    The problem is, that the old Siemens S65 does not exist any longer.
    Has anyone an idea?
    Thanks in advance

    Thanks, Julian!
    Your answer was helpful and now it works properly!
    But in addition: while syncing on my MacBook with MobileMe the process runs without starting the application iSync. On my iMac it does and after syncing it does not quit automatically.
    Any explanation for that?
    Thanks and greetings from Hamburg, Germany
    Reinhart

  • Reading GPS Data from a Bluetooth Receiver

    I have a problem when I connect my mobile to a Bluetooth GPS Receiver using the JSR 82 BTAPI.
    My mobile is reading the NMEA data from the GPS Receiver and analizes the data. The NMEA data from the GPS Receiver is delivered every second.
    It works fine for a few minutes. After approximately 5 minutes my mobile hangs (the screen freezes).
    I am using a Siemens S65 (MIDP-2.0, CLDC-1.0).
    InputStream in = null;
    StreamConnection conn = null;
    conn = (StreamConnection) Connector.open(BtsppURL);
    in = conn.openInputStream();
    ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
    int ch = 0;
    //each NMEA Message ends with <CR><LF>
    while ( (ch = in.read()) != '\n') {
              bytearrayoutputstream.write(ch);
    bytearrayoutputstream.flush();
    byte[] b = bytearrayoutputstream.toByteArray();
    String gpsStr = new String(b);Thx for any suggestions,
    RH.

    Hello RH -
    I hope you've resolved your problem by now, but a related problem I've seen under Java - both on Nokia and Siemens phones, is in creating/destroying threads.
    If the BT reading thread is being created and destroyed, this will stop working after a short period of time in my experience.
    Instead, launch a thread to read the GPS data - say every second or two - and implement the timer.sleep inside the thread.
    I'm experiencing the "BT Error Code 4" though on the Siemens S65 phone (a number of posts about this on Siemens Forum), hopefully will have this resolved today.
    Best,
    -- Rich Moore

  • IllegalArgumentException in Image.createImage()

    Hello,
    I have a problem trying to create an image-object from a captured snapshot as I always get an IllegalArgumentException in Image.createImage when capturing with 640x480. My code looks like:
    raw = mVideoControl.getSnapshot("encoding=jpeg&width=640&height=480");
    Image img = Image.createImage(raw, 0, raw.length);When I capture with 320x240, everything's fine. I guess this is a bug with my phone (Siemens S65), but would anyone have an idea how to work around that one? I thougt of doing some kind of a "screenshot", but couldn't figure out how and if this is possible.
    Thanks a lot for any help or hints
    Tobias

    I am absolutely sure, the actual code looks like:
    byte[] raw = mVideoControl.getSnapshot(enc);
    Image img = null;
    try {
        img = Image.createImage(raw, 0, raw.length);
    } catch (Throwable t) {
        showAlert(t.toString());
        System.out.println(t.toString());
    }showAlert() is my own convenience method for showing an Alert. I also send the image-byte[] to a server where I save it to a file and this works perfectly... So the Exception is definitely from createImage().
    Tobias

  • Need help with applications for nokia 6280

    Does anyone know where u can get free applications from like games and themes for the 6280.I know u can from somewhere.Any sugestions would be great.

    go to http://java.mton.ru/?content=browse&id=209 most of these games are for siemens s65 but they also can go on the 6280

  • Very, very disappointed in Nokia

    Unfortunately in April my Siemens S65 phone was stolen and the insurance company gave me a Nokia 6230i as a like for like replacement. I have to say in the 4 months since I've had the Nokia I've had a string of problems with it. These include the Email application which has stopped working so I now have to use a third party piece of software, regular crashing, poor reception and worst of all a poor implementation of bluetooth so I can't connect with my PDA. It feels like a very buggy phone. The firmare may not be the latest (it's 3.62) but I don't want to be without a phone whilst Nokia try and get it sorted out. Can anyone recommend an alternative Nokia phone that's very reliable? I'm interested in a business orientated phone with bluetooth (that works!). The Siemens phones I found to be rock solid and sadly the 6230i has been nothing but disappointing.

    Have you tried taking it to a Nokia Service Centre? They should be able to look at it for you and usually fix things within a really short space of time, some will even lend you a replacement if it has to go in longer.
    I still use my 6230i and it's a beast of a phone, love it to bits though I don't use it as my main phone any more. Yours may just need the firmware reinstalling / updating.
    Nokia History: 3110, 5110, 7110, 7110, 3510i, 6210, 6310i, 5210, 6100, 6610, 7250, 7250i, 6650, 6230, 6230i, 6260, N70, N70, 5300, N95, N95, E71, E72
    Android History: HTC Desire, SE Xperia Arc, HTC Sensation, Sensation XE, One X+, Google Nexus 5

  • Free iSync plugins to download

    Free plugins for iSync!
    You find a collection of 30 plugins for iSync at www.novamedia.de/sync.
    Some of them are solutions like the ones discussed here, other ones, e.g. the Siemens plugins, are complex plugins with own PhoneConduit lists and SyncEngine lists, depending on the phone models and their needs. It are "clean" solutions, they use the PhonePlugins folder and don't modify iSync itself.
    Have fun!

    For those of you curious about which mobile handsets are currently supported by the package, here is a list:
    Siemens:
    S65 | SK65 | SP65 | S6V | S66 | S68* | S88* | EF81* | M75* | S75 | SL75
    Nokia:
    N70 | N71* | N80* | N90 | N91* | N92* | E60* | E61* | 9300 | 9500
    Motorola:
    C350 | E1000 | SLVR | V3c | V3i | V3x* | V188
    Sony Ericsson:
    W550i | W900i
    * NOTE: these phones are not tested. Please use with caution and report to [email protected]

  • 6230i bluetooth problem

    Hi guys, really need someones help please!! Iv recently bought a brand new 6230i, however when i switch the bluetooth on and try to recieve files, it bassically is just not working!! Its ok if i send a file, e.g a photo to another persons phone, all works well. However when someone tries to send me something i get a notification askin for acceptance as usual, then i press ok, and after a few seconds it just say conection failed!!! This is with every type of phone with all types of data. Im wondering if because my chip is now a few years old and only on pay as you go, is it something to do with that?
    Its very strange as say for example a friend can see my phone on their phone so obviously the phones are comunicating, but data will just not arrive at my phone!!!
    Please help guys!!!!!!
    Cheers
    Mark

    I confirm there is a problem with Bluetooth on this device.
    I have been played with bluetooth for a long time (> 9 months) with my Siemens S65, a GPS, a BT dongle and recently with the Nokia 770 tablet. Never have a problem between all these devices whatever I am under Linux or under XP (with the same dongle on both systems). I'm using GPRS regularly with the Nokia 770 (via BT and the S65) and no problem at all. Same thing with the dongle, the GPS and the S65 or the tablet.
    Yesterday I acquired a 6230i for testing EDGE (GPRS is a bit -very- slow guys) and ... impossible to retrieve a full page.
    There is no problem when using GRPS from the terminal itself.
    There is also no problem at all when playing with AT commands through the serial port profile (RFCOMM) using the dongle with XP.
    But as soon as there is a few bits to be transfered the BT link crashes : I can only observe the beginning of a HTML when surfing before the BT link stops.
    Moreover the Nokia 770 tablet itself is unable to see the shared directories on the 6230i whereas it has no problem for seeing and transfering them from the S65 !
    Big, big incompatibilities between 2 products of the same manufacturer!
    Sounds like a flow control problem.
    So where is the solution ? My firmware (6230i) version is 3.5.
    db

  • Satellite M40: card reader doesnt recognize RS-MMC cards

    I have a problem with the card reader,if i insert a RS-MMC card this does not recognized and windows crash.
    SD or MMC cards functions perfectly.
    The card reader is damaged?

    you can do the following:
    push your rs-mcc card into the slot without the adapter, you will need a pencil or sthg like that to push it far enough..
    then your notebook will recognize it
    you can pull out your card again by shoving the adapter after it in the slot, when you hear the clicking sound you can pull the adapter with the card on it out of the slot
    (when i put the adapter on the card before, and put the card then into the slot, it didnt function at all, seemed like the card couldnt be pushed deep enough into the slot due to the adapter)
    at least it worked for me, i had the rs-mcc card and the adapter from my siemens s65 mobile phone
    besides, though this procedure might sound a bit rough, it didnt seem to me that it did any harm neither to the adapter, nor to the card + slot

  • J2me midlets doesn't wok at all on Symbian

    Hello.
    Such problem occured. I'll try to describe it:
    Midlet midp2 doesn't install on smartphones with Symbian OS. An error is displayed:"Installation failed.Wrong version",at the same time this midlet midp2 can be installed on other phones and work properly ( i mean without Symbian OS).
    For e.g.
    On the Siemens S65,which supports midp2, midlet works properly.
    At the same time on Nokia 7610 smartphone, which supports midp2 too, it can not be even installed, but Midp1 midlets work properly on Nokia 7610 smartphone. Maybe wrong OS Symbian version or..?? Your advices?
    Thx for your cooperation.

    Hi,
    I think it may be your MIDP version which is causing you some problems.
    I have a nokia n-gage which runs the Symbian OS and I have successfully installed a MIDlet using the MIDP1.0 and CLDC1.0 profiles.
    Sounds like the version of Symbian that you are using does not support the MIDP1.0 profile, I know for sure that the Symbian version that is running my n-gage does not support MIDP2.0

  • What Phone Supports Camera Capture the Best (Jsr-135)

    Hello,
    I am writing a j2me application that captures camera images. What is a POPULAR phone that has good graphics; that, if possible, can hold multiple pictures in memory while other pictures are taken, for this? I read some posts from 2004 in this group about this but I am asking again because maybe things have changed since then.
    Thanks,
    Erica

    I'm not sure what you mean when you are talkin "popular". If you are interested in "long time good periodic photo taker and saver" i suggest you Siemens S65. It has a built-in camera of really high resolution (1.3 Mpix) and supports MMC cards (based on siemens doc's - up to 256 MB, but with experiences of SL45i - i wont be surprised if the bigger ones will work too).
    If S65's price is too high - you can consider buying CX65. Infos i got says that it does support MMAPI but you should check if it supports video capture. Oh, and it does not support MMC.

  • HttpConnection on Siemens S55 emulator

    Hi all together!
    Does anybody know about this problem?
    The midlet freezes while opening the InputStream in a "Please wait"-Screen
    on the emulator!
    HttpConnection c = null;
    c = (HttpConnection)Connector.open(HTTP_URL);
    System.out.println(" test1");
    InputStream is = c.openInputStream(); <-- here it freezes!
    System.out.println(" test2");
    I can't reach the second System.out.! It runs perfect on Sun's
    Default emulators or Siemens SL45i emulator bur NOT AT ALL on S55!
    Thank you so much for ANY ideas in advance !!
    Greetings
    Hans :-)))))))

    I have the same problem on a SL45i phone. It seems it has to do with dial up connection.
    I read about this in a document called "SMTK_ProgRefM50.pdf", but it's still quite unclear to me. What I understand of it, is that you can't use a WAP provider for HTTP requests. You would need a 'normal' internet provider (like when you dial-up with an analog modem in a computer). The problem is that, although all settings seem to be correct, I can't connect to such a provider.

Maybe you are looking for

  • IPhone won't completely delete songs in iTunes (corrupted files?)

    Hey guys, I've been working on this issue for nearly two days now, and I just have no idea of how to fix it. The issue: in iTunes, my iPhone says I have multiple albums/songs on the phone, despite me trying multiple times to delete them, and despite

  • Can't see location of item with long name in Spotlight search?

    I can find the location of an item in a Spotlight search by selecting it and holding down the Command key, whereupon its position is displayed at the bottom of the Spotlight window. However, if the item has a long name, the location is "offscreen" as

  • Error while billing document releasing to accounting.

    Hi Experts, Please give me possible reasons for below error while billing document releasing to accounting. "Valuation with material cost estimate: error with product "500258045" Message no. KE350 Diagnosis In Profitability Analysis (CO-PA), the syst

  • Read the first word of each line in a text file

    i need to read the first word of each line of a text file. i know of line.split() but not actually sure how i would go about using it Any help most appreciated Many Thanks Ben

  • Can you run a small network with different versions of OSX?

    Snow Leopard has been freezing on me over and over, but I have hesitated to upgrade until we had a home finance program that worked on later systems. We have three Macs on wireless network (Airport Extreme)-- can I jump two versions of OSX on mine an