getting error in json object using url2png method
Cloudinary cloudinary = new Cloudinary(account);
var uploadParams = new ImageUploadParams()
{
File = new FileDescription(@"https://en.wikipedia.org/wiki.jpg")
};
var uploadResult = cloudinary.Upload(uploadParams);
cloudinary.Api.UrlImgUp.Action("url2png").BuildImageTag("https://en.wikipedia.org/wiki");
i got this error in jsonobject of uploadresult variable JsonObj = {{
"error": {
"message": "Resource not found - Error in loading https://canvas-test.jobrock.com/proposition-canvas/folio/f2d135c7-3ca6-451f-ba47-a0bce705ccdb/edit - HTML response"
}
}}
-
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 -
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 -
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.
Comments
3 comments