Skip to main content

getting error in json object using url2png method

Comments

3 comments

  • Roee Ben Ari

    Hi Puja, 

    As mentioned in our response to your support ticket, the error you see is raised when the file source for upload is leading to an HTML page rather than to a valid image. In your case, as we see in the logs, the URL you've set as 'file' was redirecting to a 404 error page and thus the error you're seeing. 

    0
  • puja

    i want to use UrlImgUp method for dynamic creating image from url in .net(with c#) and upload the generated image on my cloudinary.could anyone help me doing this with the help of proper code 

    cloudinary.Api.UrlImgUp.Action("url2png").BuildImageTag("https://en.wikipedia.org/wiki");

    with this line of code ,it gives error at the keyword .type suggest to change type to resource type or source type.

    0
  • Roee Ben Ari

    Hi Puja, 

    Looking at your logs, the error you are getting is this - "URL must be signed when using URL2PNG". 

    As the error suggests, URLs that are using Cloudinary's 3rd party add-ons should be signed. 

    Please try:

    cloudinary.Api.UrlImgUp.Action("url2png").Signed(true).BuildImageTag("https://en.wikipedia.org/wiki"); 

    0

Post is closed for comments.