我想通过毕加索加载图像。 我使用此代码
Picasso.with(getContext())
.load("https:/url.com")// here you resize your image to whatever width and height you like
.into(imghotel, new Callback() {
@Override
public void onSuccess() {
}
@Override
public void onError() {
Toast.makeText(getContext(), "error", Toast.LENGTH_SHORT).show();
}
});
我不能处理一个大问题。 当我测试另一个网址时,一切正常。 当我通过android 23和26测试此url时,一切正常。 但是当我通过android 19 picasso测试此URL时,不显示图像并显示网关超时错误。
我认为这是我的php服务器中的问题。
任何人都可以引导我
这也是服务器中的htacces文件
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
</IfModule>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://url.com/$1 [L,R=301]
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php5_module>
php_flag asp_tags Off
php_flag display_errors Off
php_value max_execution_time 300
php_value max_input_time 9000
php_value max_input_vars 10000
php_value memory_limit 256M
php_value post_max_size 128M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php56"
php_value upload_max_filesize 128M
php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
php_flag asp_tags Off
php_flag display_errors Off
php_value max_execution_time 300
php_value max_input_time 9000
php_value max_input_vars 10000
php_value memory_limit 256M
php_value post_max_size 128M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php56"
php_value upload_max_filesize 128M
php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit