×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    1

    Send photo a PHP script

    View Profile Personal Message (Online)
    Send photo a PHP script
    « on: Today at 04:40:44 PM » Reply with quote Modify message Remove message
    Hello,
    I am developing a midlet that goes off a photo and it sends her/it to a script php.
    How can I send the photo?
    I have tried to send the photo in an array byte...i write the code

    conn = (HttpConnection) Connector.open(url);
    conn.setRequestMethod(HttpConnection.POST);
    conn.setRequestProperty("Content-Type",getRequestContentType());
    conn.setRequestProperty("Accept","text/xml,text/html");


    OutputStream os = conn.openOutputStream();
    byte[] data = ("email="+login).getBytes();
    os.write(data);
    data = ("&password="+password).getBytes();
    os.write(data);
    photodata = videoCamera.getPhotoData();
    data = ("&foto=").getBytes();
    data = photodata;

    os.write(data);
    os.flush();

    Is it right
    Help me.....

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Send photo a PHP script

    Hi Simone,

    this Wiki article should help:

    http://wiki.forum.nokia.com/index.ph...load_with_J2ME

    Pit

Similar Threads

  1. crypting with J2ME decrypting with PHP
    By steady99 in forum Mobile Java General
    Replies: 26
    Last Post: 2012-10-04, 05:59
  2. Problem In Send SMS
    By SingerSinger in forum General Messaging
    Replies: 0
    Last Post: 2008-07-26, 18:43
  3. Send SMS through VB application using nokia 8210, infra-red port
    By alvinyoong in forum General Messaging
    Replies: 4
    Last Post: 2005-01-27, 11:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •