问题描述
您好,我正在尝试将jpg图像发送到此IP摄像机拍摄的Oxford OCR服务:http:// guest:[email protected]:27654 / jpg / image.jpg
Hello, I was trying to send a jpg image to Oxford OCR service taken by this IP camera: http://guest:[email protected]:27654/jpg/image.jpg
我收到的回复是"图片网址无法访问"。我不知道错误在哪里。可以通过我的网络浏览器访问该网址。用户名(访客)或密码(访客12)是否有问题?
The response I got is "Image URL is not accessible". I don't know where could be the error. The url is accessible through my web browser. Is there any problem with the username (guest) or password (guest12) ?
推荐答案
解决方法是在本地加载图像,然后在主体中发送原始字节以及标头
Content-Type:application / octet-stream
。这可能是一个更好的解决方案,因为auth信息以明文形式出现。
The workaround is to locally load the image and then send the raw bytes in the body along with the headerContent-Type: application/octet-stream
. This might be a preferable solution for you since the auth information is otherwise going out in the clear.
这篇关于图片网址无法访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!