2013-10-01 28 views

回答

2

你可以試試這個代碼

BlobInfoFactory bif = new BlobInfoFactory(); 
BlobKey bk = new BlobKey("<your blobkey>"); 
BlobInfo blobInfo = bif.loadBlobInfo(bk); 

if(blobInfo == null) 
    // The blob with the provided blobkey does not exists 
else 
    String contentType = blobInfo.getContentType(); 
+0

太謝謝你了! – Lin