|
@@ -740,7 +740,7 @@ public class ImageClassificationFileController extends BladeController {
|
|
* @throws IOException
|
|
* @throws IOException
|
|
*/
|
|
*/
|
|
public long getResourceLength(String urlStr) throws IOException {
|
|
public long getResourceLength(String urlStr) throws IOException {
|
|
- //urlStr = replaceOssUrl(urlStr);
|
|
|
|
|
|
+ urlStr = replaceOssUrl(urlStr);
|
|
URL url = new URL(urlStr);
|
|
URL url = new URL(urlStr);
|
|
URLConnection urlConnection = url.openConnection();
|
|
URLConnection urlConnection = url.openConnection();
|
|
urlConnection.connect();
|
|
urlConnection.connect();
|