create image from blob storage
i need to create an image from the html file which is stored in blob azure
storage.
CloudStorageAccount account = new CloudStorageAccount(credentials, true);
CloudBlobClient client = new
CloudBlobClient(account.BlobEndpoint.AbsoluteUri,
account.Credentials);
CloudBlobContainer container2 =
client.GetContainerReference(absolutePath);
CloudBlob blob = container.GetBlobReference(filename);
if (absolutePath != null)
{
bmp = (Bitmap)System.Drawing.Image.FromFile(blob.Name) , true);
}
but i got an error of that file not found exception.
plz help.
i need to convert html page into an image and then store back to blob
storage.
Regards, Brijesh Vaidya
Thanks gaurav, i applied authentication and azure library to get blob
file, but when my path is https://abc.core.windows.net/ds/file.html" and
if i will generate the image file from the html file path supplied in the
following line: bmp = (Bitmap)System.Drawing.Image.FromFile(blob.Name) ,
true);
i got error.
No comments:
Post a Comment