1
데이터 저장소에서 blobkey를 가져옵니다.
이제이 BLOB 키를 사용하여 blobstore에서 BLOB의 콘텐츠 유형을 가져 오려고합니다.blobkey로 blobstore에서 컨텐츠 유형을 얻는 방법은 무엇입니까?
어떻게 만드시겠습니까?
데이터 저장소에서 blobkey를 가져옵니다.
이제이 BLOB 키를 사용하여 blobstore에서 BLOB의 콘텐츠 유형을 가져 오려고합니다.blobkey로 blobstore에서 컨텐츠 유형을 얻는 방법은 무엇입니까?
어떻게 만드시겠습니까?
당신은
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();
너무 감사합니다이 코드를 시도 할 수 있습니다! – Lin