由于查询“?_ nc_ht = scontent ...”,.jpg无法识别为有效格式。在URL内 [英] .jpg isn't recognized as valid format because of queries "?_nc_ht=scontent..." inside the URL

查看:133
本文介绍了由于查询“?_ nc_ht = scontent ...”,.jpg无法识别为有效格式。在URL内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我正在尝试向Face Service进行API调用。 

Hi I'm trying to make API calls to the Face Service. 

我使用的Facebook网址如下所示: 

I'm using Facebook URLs which looks like this: 

http://scontent-cdt1-1.cdninstagram.com/vp/2c633f4000e73f9b69883064887bca67/5D97B217/t51.2885-15/e35/59052108_38663_n.jpg? nc_ht = scontent-cdt1-1.cdninstagram.com

http://scontent-cdt1-1.cdninstagram.com/vp/2c633f4000e73f9b69883064887bca67/5D97B217/t51.2885-15/e35/59052108_38663_n.jpg?nc_ht=scontent-cdt1-1.cdninstagram.com

提交到API时,格式错误,因为.jpg不在URL的末尾。
nc_ht  字段是必要的。

When submitting to the API I get wrong format since the .jpg is not at the end of the URL. The nc_ht field is necessary.

绕过此任何技巧? 

Any trick to bypass this? 

提前致谢!

推荐答案

您好,请您做好业务逻辑处理 在调用API之前,将图像URL设置为客户端上的正确格式。请指出您正在尝试的代码。
Hi, Could you please do the business logic to process  the image url to the correct format on the client side before calling the API.Could you please point to the code you are trying.


这篇关于由于查询“?_ nc_ht = scontent ...”,.jpg无法识别为有效格式。在URL内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆