Is anyone aware of plans to rework the GetAlbumPictures operation of the GalleryService? If there are many pictures for that album id and/or the Pictures are large, this operation will timeout. It would be nice to have a GetAlbumPicturesOptions parameter where we could specify what we want returned. For instance, the following:
public struct GetAlbumPicturesOptions{ public bool PictureUrl; //The fully qualified Picture Url will be returned. public bool PictureData; //The raw bytes for the Picture will be returned. public PictureSize Size; // The size of the picture to return. } public enum PictureSize { Thumbnail, Original, Small, Medium, Large }
public struct GetAlbumPicturesOptions
{
public bool PictureUrl; //The fully qualified Picture Url will be returned.
public bool PictureData; //The raw bytes for the Picture will be returned.
public PictureSize Size; // The size of the picture to return. }
public enum PictureSize
Thumbnail,
Original,
Small,
Medium,
Large
Howdy,
We actually did make a similiar change to the Gallery Service code just last week, which will be included in Community Server 2007 Beta 2.
Currently it's implemented as a new method that takes two parameters: whether to include the binary file data or not, and what tags/albums (if any) to filter on. This would let you make an initial light-weight call to get a list of the pictures and their metadata to display, and then make additional background calls to retrieve the actual binary data if desired.
Your suggestion to allow the picture size to be specified is a good idea as well. I'll file it in our ideas list and it may be something we can add in for 2007 depending on time constraints.
Thanks for your input!
José Manuel NietoTranslator of the Spanish Language Pack for Community Server 2008Developer of CS Writer
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com