从大数据加载图像连接超时错误
Connection Time Out Error Loading Image from Big Data
我有图片库,在 ASP.NET 应用程序的文档就绪功能上使用 post 方法加载照片。照片存储在大数据中。我检索所有图像路径并绑定每个图像源。我正在使用 Nanogallery js 插件来显示照片。
从大数据中检索数据时没有错误,但在加载照片时出现连接超时错误。
我厌倦了 100 张照片和 2 张照片,但结果是一样的。我遇到了同样的错误。
Post 方法
$.ajax({
type: 'POST',
cache: false,
async: false,
url: 'PhotoAlbum.aspx/GetAllPhotos',
contentType: 'application/json; charset=utf-8',
success: function (data) {
var arraydata = JSON.parse(data.d);
loadGalery(arraydata);
},
error: function (xhr, ajaxOptions, thrownError) {
console.log(xhr.status);
console.log(xhr.responseText);
console.log(thrownError);
}
});
,
function loadGalery(pdata) {
jQuery("#nanoGalleryHome").nanoGallery({
items: pdata,
thumbnailHoverEffect:'imageInvisible,imageScale150,borderLighter',
viewerDisplayLogo:true,
locationHash:false,
thumbnailDisplayInterval: 5,
thumbnailDisplayTransition: true,
thumbnailLabel : { position : 'overImageOnBottom', display : true, displayDescription : true, titleMaxLength : 0, descriptionMaxLength : 0, hideIcons : false, title : '', itemsCount : '' },
galleryRenderStep: 50,
paginationDots : true,
galleryFullpageButton:true
});
}
});
错误信息:
无法加载资源:net::ERR_CONNECTION_TIMED_OUT
http://BigDataPath/images/2015/3689500b-daa8-4a0b-81dd-7433d6304dfe?op=OPEN&user.name=web&namenoderpcaddress=bdm:8020&offset=0
最好能有一个现场URL来检查你的问题。
我找到了解决方案。问题是 50075 端口被关闭,所以我打开了端口,照片完美加载。
我有图片库,在 ASP.NET 应用程序的文档就绪功能上使用 post 方法加载照片。照片存储在大数据中。我检索所有图像路径并绑定每个图像源。我正在使用 Nanogallery js 插件来显示照片。 从大数据中检索数据时没有错误,但在加载照片时出现连接超时错误。
我厌倦了 100 张照片和 2 张照片,但结果是一样的。我遇到了同样的错误。
Post 方法
$.ajax({
type: 'POST',
cache: false,
async: false,
url: 'PhotoAlbum.aspx/GetAllPhotos',
contentType: 'application/json; charset=utf-8',
success: function (data) {
var arraydata = JSON.parse(data.d);
loadGalery(arraydata);
},
error: function (xhr, ajaxOptions, thrownError) {
console.log(xhr.status);
console.log(xhr.responseText);
console.log(thrownError);
}
});
,
function loadGalery(pdata) {
jQuery("#nanoGalleryHome").nanoGallery({
items: pdata,
thumbnailHoverEffect:'imageInvisible,imageScale150,borderLighter',
viewerDisplayLogo:true,
locationHash:false,
thumbnailDisplayInterval: 5,
thumbnailDisplayTransition: true,
thumbnailLabel : { position : 'overImageOnBottom', display : true, displayDescription : true, titleMaxLength : 0, descriptionMaxLength : 0, hideIcons : false, title : '', itemsCount : '' },
galleryRenderStep: 50,
paginationDots : true,
galleryFullpageButton:true
});
}
});
错误信息: 无法加载资源:net::ERR_CONNECTION_TIMED_OUT http://BigDataPath/images/2015/3689500b-daa8-4a0b-81dd-7433d6304dfe?op=OPEN&user.name=web&namenoderpcaddress=bdm:8020&offset=0
最好能有一个现场URL来检查你的问题。
我找到了解决方案。问题是 50075 端口被关闭,所以我打开了端口,照片完美加载。