×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Images, Videos and Uploads

    Hi,

    I'm porting a iPhone app to the WRT platform, for N97s and 5800s. This widget needs to post text and media files to a web service.

    So far, I'm using the S60 Platform Services 2.0 Javascript API for integration with the camera. This works ok, although it has some caveats: 5MP images seem too big for display but as there is no way to resize the images on the fly, I can live with this (I will instruct users to decrease the quality when taking photos).

    I can scroll through existing photos and all, but I don't have a clue how to access the file and upload it to the web. The example that comes up all the time uses a <INPUT TYPE="file"> which I don't want to use, as it's very awkward to use on a phone, and is ulgy has hell. If there were a input type="photo" or type="video" it would be a godsend.

    How can I do something like the Facebook widget? I notice something called APIBridge in that widget searching Google and Nokia I can't find anything. Is this some private API I can't access?

    I'd appreciate if someone could give me a few pointers in the right direction.

    The main topics here are camera integration from the widget, for both photos and video, and how to upload the file. If there was any way to access the raw data from the file, I can encode it to base64 or something else and upload that in a simple AJAX request.

    Thanks for any help.

    Best regards,
    Pedro

  2. #2
    Registered User
    Join Date
    Sep 2009
    Posts
    3

    Re: Images, Videos and Uploads

    I'm working on the same issue and would appreciate some hints, too.
    I tried upload with the <INPUT TYPE="file".. posting the form to a hidden iframe
    http://wiki.forum.nokia.com/index.ph...Runtime_widget

    ... but experiencing problems with that and, indeed, it may not be the best solution. As some devices do not support file uploads.
    Any ideas or examples out there?

  3. #3
    Super Contributor
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Images, Videos and Uploads

    Hello,

    API Bridge is available for 3rd party developers as well
    You might be interested in file upload and resize functionality

    http://www.forum.nokia.com/info/sw.n...ApiBridge.html
    http://wiki.forum.nokia.com/index.ph...eb_Runtime_API


    Br,
    Ilkka

Posting Permissions

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