我正在使用laravel项目,并面临一个问题。我创建了一个名为"Product“的数据库模型,该模型有一个名为"product_image”的字段,其数据类型为string。
public function up()
{
Schema::create('Products', function (Blueprint $table) {
$table->string('product_image')->nullable();
$table->timestamps
以下步骤允许我获取保存在我的TomCat服务器上的图像。但我无法访问谷歌网站上的图片。可能的原因是什么?
URL aURL = new URL(url);
URLConnection con = aURL.openConnection();
con.connect();
InputStream is = con.getInputStream();
/* Buffered is always good for a performance plus. */
Buffere