Simplify creating a blob from this...
BlobProperties blobProperties = new BlobProperties(strBlobName);
FileStream stream = new FileStream(strFilePath);
BlobContents blobContents = new BlobContents(stream);
objBlobContainer.createBlob(blobProperties, blobContents, fOverwrite);
Be consistent with Blob Stream API terms and point of view (POV)
To put a blob into a container...
Blob objBlob = new Blob(strBlobName)
Stream objStream = FileStream(strFilePath);
objBlob.setContents(Stream objStream);
objBlob.setMetadata(Metadata objMetadata);
objBlobContainer.putBlob(objBlob, fOverwrite);
To get a blob from a container...
Blob objBlob = objBlobContainer.getBlob(strBlobName);
Stream objStream = objBlob.getContents();
Metadata objMetadata = objBlob.getMetadata();
chuwei huang
None
None
Public
|
Date: 2009-11-03 01:59 At the moment, the java blob api is similar to c# blob api. Look at the c# |
|
Date: 2009-11-02 15:20 FYI |
| Field | Old Value | Date | By |
|---|---|---|---|
| assigned_to | nobody | 2009-11-02 15:20 | yvesyang |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use