6 messages in com.googlegroups.google-base-data-apiRe: Google Base Image Link Issues (or...| From | Sent On | Attachments |
|---|---|---|
| Ken G. aka. datamapper<at>gmail<dot>com | 15 Apr 2007 14:10 | |
| Ken G. aka. datamapper<at>gmail<dot>com | 16 Apr 2007 11:08 | |
| Robur MOW | 18 Apr 2007 13:48 | |
| ShoreTel | 20 Apr 2007 17:40 | |
| Jeff S | 23 Apr 2007 07:45 | |
| Ken G. aka. datamapper<at>gmail<dot>com | 29 Apr 2007 19:20 |
| Subject: | Re: Google Base Image Link Issues (or, When Is A Link Not A Link)![]() |
|---|---|
| From: | ShoreTel (webm...@shoretel.com) |
| Date: | 04/20/2007 05:40:45 PM |
| List: | com.googlegroups.google-base-data-api |
I posted in that same thread, and Jeff said he would look into it with the rest of the team, but its been about a month since there's been any activity in the thread. I'm hoping we'll hear one way or the other soon.
On Apr 18, 1:49 pm, Robur MOW <a....@allthingsinteresting.com> wrote:
Ken;
Good work! I reported this problem in this developer group months ago, you should be able to find my report with a search. Google has been vacillating between having the image fields in it's feed point to a broken proxy server and straight to the image since then, and I hope they will get it fixed soon :-)
Happy Coding,
-Aubrey
On Apr 16, 11:08 am, "Ken G. aka. datamapper<at>gmail<dot>com"
<data...@gmail.com> wrote:
Ok Folks, Upon further investigation, my issue is because of Google's disallowance of "hot" linking to Base images, even if they are public, searchable, and on the "snippets" feed (in other words, my images/ links are not my images/links). My (ASP) solution:
Get the <g:image_link> url from the query results
Make the href (or img src) point to a "proxy" page on the server which will take the image url in the query string (e.g. <a href="getimage.asp?url=http:// base.google.com/base_image?q=hand-12345&size=1">Image Link</a>)
The proxy page gets the "url" parameter (and "size" parameter and concat's them), invokes a server-side XMLHttpRequest (MSXML2.ServerXMLHTTP.3.0), and uses it to GET the image and Response.BinaryWrite it back to the browser (Whew!)
Seehttp://support.microsoft.com/kb/303982forthe MSXML2.ServerXMLHTTP ASP code. The web app is atwww.ferrum.edu/blueridgenaturalist/
Hope this helps someone. Ken Gustafson
On Apr 15, 5:10 pm, "Ken G. aka. datamapper<at>gmail<dot>com"
<data...@gmail.com> wrote:
Hi All,
Trying to link to any of my (public/searchable) item's image in Base, but (almost) nothing I do is working. Got a map (with infoTabs) with a link to the item's image, but Google responds with a 404. Even forming a 'hard' link (<a href="link_to_image">) doesn't work, BUT typing in the exact same URL fetches the image!
Seewww.ferrum.edu/blueridgenaturalist/chestnutmapdebug.asp(useIE; working on Moz. functionality).
Click "Show Data", then click through alert/debug popups (sorry). Pulling data (shown in textarea at bottom) from Base account, which includes a <g:image_link> for each <entry>.
Click a flower icon, then the 'Full-size' link (or image placeholder). A 404 results (at least on my system). BUT, on that 404 page, manually change the "size" parameter (at the url's end) to "2" (for example; Base provides sizes ranging from 1(full-size)-6), a smaller picture comes up. NOW, change the "size" parameter BACK to "1" - THE DARN THING (FULL- SIZE) COMES UP! Also, when running the (basically same) code on my local machine everything works. Tried replacing "base.google.com" with "www.google.com" (which also works manually) but same 404 result.
There's a 'hard' link right above the textarea that points to one (piblic/searchable) item's image, but 404 also if clicked, but changing the "size" parameter as above gets the pic.
Any thoughts? Does Google look for a Key when accessing item images (doesn't seem so b/c manually typing in the image's url in a fresh window gets the pic). Does Base need "image/jpeg" Content-Type set? How may I further troubleshoot this?
Thanks for any input, Ken Gustafson




