how to display embed and link in razor? - asp.net-mvc-3

i'm trying to find out how to display youtube enbed and youtube link in razor
i'm using this #html.raw(item.MyUrl) and it is diplaying the "embed " data but i'm trying to find out (if can do ) a way to display also the youtube link (look like this(http://youtu.be/9hUy9ePyo6Q)
i have tryed decode and encode they also work in enbed but not by the Url link
#Html.Raw(HttpUtility.HtmlDecode(item.MyUrl))
## #Html.Raw(HttpUtility.HtmlEncode(item.MyUrl))
Thanks

did you try to use the item.MyUrl directly instead of using html.raw() ??

Related

Combining multiple forms and reports in one page

Following the Zoho tutorials in their site , It seems they are out of date . According to this video tutorial
It's not the same as the current version of the site . How do i embed a form and report ?
there is 2 way.
using iframe
using page you can directly add form/report
Please refer this:
Or
https://www.zoho.com/creator/newhelp/pages/add_form.html

How to add an image to a link to share it on Facebook

I am implementing a button to share posts on Facebook and my problem is that when I share the link of a post through "https://www.facebook.com/sharer/sharer.php?u=" + POST_URL + "&amp" it is shared with the thumbnail, description, correctly but I have some other links that are pdf files that I need to be shared in the same way but are only being shared with the link, without preview and image. I want to know if it is possible to concatenate an image to a link to share it on Facebook.
I tried to concatenate the image to the link like this: &picture=URL_IMAGE but it does not work.
Example links
Sharing a pdf file: https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.africau.edu%2Fimages%2Fdefault%2Fsample.pdf&amp%3Bsrc=sdkpreparse
Sharing a new: https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.nytimes.com%2Fes%2F2020%2F05%2F26%2Fespanol%2Fcoronavirus-superficies-como-se-transmite.html&amp%3Bsrc=sdkpreparse
Thanks

Display embedded doc / docx / pdf inside HTML using Google APIs

I have a problem to display doc / docx / pdf docs assuming I have an online link to them (i.e. http://my.site.com/files/file_id_123423234)
2 Alternative I know Google provide are 2 following links:
http://docs.google.com/gview?url=[link_to_file]
Example:
http://docs.google.com/gview?url=http://my.site.com/files/file_id_123423234&embedded=true
https://docs.google.com/viewerng/viewer?url=[link_to_file]
Example:
https://docs.google.com/viewerng/viewer?url=http://my.site.com/files/file_id_123423234&embedded=true
Both alternatives not always manage to successfully display the doc ending up the http call with "no preview available":
Can you please provide a solution / alternative?
You just need to make use of the Embedded links. To do this, you have to publish the files on the web as stated in Publish and embed Google Docs, Sheets, Slides & Forms.
File -> Publish to the Web. Get the Embed Link.

Google similar image search API

I'm trying to find out if there is a way to do google similar image searches via an API?
I know the image search api is depreciated but is it still useable?
https://developers.google.com/image-search/
Also... It seems that you can do image searches with the custom search api but I can't seem to work out if a similar image search is possible.
http://thenextweb.com/dd/2012/02/14/googles-custom-search-api-now-supports-image-only-results/
Any leads on advice on working this our would be appreciated.
Thanks!
If you have a URL for a hosted image (using Dropbox, imgur, etc), the answer at https://stackoverflow.com/a/15134958/116891 shows you how to find similar images. Basically,
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
That is deprecated.
But I need JSON format of similar images result.
So, I try to use google cse but this is not supported searching of similar images.
It's just displayed image search results in a custom domain.
Another method that i try is URL.
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
But this is not solution what i need.
It is because able to use in the browser. I need JSON.
Conclude, I decide to use Vision API of Google.
This is very simple.
https://cloud.google.com/vision/
You can try on the top.
First, access the URL.
Second, upload your image file on the "Try API".
Third, click "JSON" tab menu on the result.
You can be seen JSON about similar images.

Google Image Search via Upload

The image search API from Google has been depreciated:
https://developers.google.com/image-search/
My question is where can we now get the same data? It says it has moved to the new Custom Search API (https://developers.google.com/custom-search/v1/overview), but I cannot find where to now submit uploaded image data for the search. Can someone please explain or link me the information for this.
Our web app needs to be able to upload the image to google and check via a API where the image has been found.
Also if Google does not allow this is there any substitutes?
Thank you in advance.
you can get search result using direct link for uploaded image.
let direct link be http://i47.tinypic.com/ekepuq.png (to stream image data for search) then Make url as
"http ://images.google.com/searchbyimage?image_url=[diretlink]"
ie " http://images.google.com/searchbyimage?image_url=http://i47.tinypic.com/ekepuq.png " and can get search result for the same image.

Resources