Share

Windows Azure SDK for Java Developers

Tracker: Feature Requests

5 Altering POV using Blob Stream API terms - ID: 2889827
Last Update: Comment added ( chuweihuang )

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();


Jeff in Seattle ( jeff00seattle ) - 2009-10-31 03:49

5

Open

None

chuwei huang

None

None

Public


Comments ( 2 )




Date: 2009-11-03 01:59
Sender: chuweihuang

At the moment, the java blob api is similar to c# blob api. Look at the c#
example at
http://www.dreamincode.net/code/snippet4222.htm about creating blob


Date: 2009-11-02 15:20
Sender: yvesyangProject Admin

FYI


Log in to comment.

Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
assigned_to nobody 2009-11-02 15:20 yvesyang