Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to send image to images.google.com and get answer: "search by image"
    primarykey
    data
    text
    <p>I need to create android application using Phonegap. Phonegap takes a picture, saves it (using default camera app) and I would like to send that image to images.google.com in order to get "search by image" answer (it can be in default browser that is installed on android - phonegap can close itself and open browser). </p> <p>Now, if you drag and drop in browser, you will get this automatically, but does anyone know how to get same result from javascript?</p> <p>I gave up using any kind of api for it and tried to use POST. This is the html code:</p> <pre><code>&lt;form action="http://images.google.com/searchbyimage/upload" method="post" enctype="multipart/form-data"&gt; &lt;input type="hidden" name="image_url" id="image_url" /&gt; &lt;input type="hidden" name="btnG" id="btnG" value="Search" /&gt; &lt;input type="file" name="encoded_image" id="encoded_image" value="C:\xampp\htdocs\test\bundy.bmp" /&gt; &lt;input type="hidden" name="image_content" id="image_content" /&gt; &lt;input type="hidden" name="filename" id="filename" /&gt; &lt;input type="hidden" name="hl" id="hl" value="en" /&gt; &lt;input type="hidden" name="bih" id="bih" value="507" /&gt; &lt;input type="hidden" name="biw" id="biw" value="biw" /&gt; &lt;input type="submit" name="submit" value="Submit" /&gt; &lt;/form&gt; </code></pre> <p>Now: it works just great if user chooses a picture himself and click upload, but for security reasons, only user can do it. My initial idea was to set via js a default value in the form (input type="file"...), and auto-submit it, but I cant touch this from js/html side.</p> <p>Does anyone has idea how to go around this problem?</p> <p>EDIT: I have this idea instead of "file" I use type="text" and into its value I put image read using fopen (or sth like that - I try php on localhost now as it is easier for testing). So far no success. Any clues?</p> <p>EDIT2: and another idea is to go directly to <a href="https://www.google.com/search" rel="nofollow">https://www.google.com/search</a> with image send in base64, but I don't have google fingerprint (one of reasons they generate is is propably becouse they dont want to be "hacked" like that :D )</p> <p>Thank you for help in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload