Export URL file parameter

Home Forums API Forum Export URL file parameter

This topic contains 1 reply, has 2 voices, and was last updated by Ribbet Ribbet 4 years, 6 months ago.

  • Author
  • #4209 Reply

    rob zanna


    I was looking at using your image editor on our website.

    Using the sample url in your API instructions it creates an export url of:

    The decoded file parameter is:

    If I navigate directly to http://fr.ribbet.com/~ribbet/air/out/J77063937788462 I am asked to download an application/octet-stream file.

    Why doesn’t the image show??

    You must be doing something to the image file as it shows correctly here:




  • #4213 Reply

    Hi Rob,

    Thanks for contacting us. Basically the url in the file parameter points to a temporary image download. It will only remain a valid url for a couple of days. The intention of the API is that you will save this file to your server if you need to hang onto it, or you can display it immediately (as it does in api-example.php that you've mentioned) using some simple PHP like:

    echo '<img src="'.$_GET['file'].'" />';

    Alternatively the following Javascript can be placed directly into an HTML file in order to display the image:

    function getParameterByName(name) {
    name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
    results = regex.exec(location.search);
    return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));

    document.write("<img src='"+getParameterByName("file")+"'>");

    Please let us know if we can be of any further assistance!

  • #13134 Reply

    best ip camera

    (Awaiting moderation)

Reply To: Export URL file parameter
Your information: