GalleryService.asmx and GalleryPost.PictureData

rated by 0 users
This post has 2 Replies | 2 Followers

Not Ranked
Posts 20
Points 305
cromwellryan Posted: Mon, Mar 5 2007 11:24 AM

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 

}


 

Top 50 Contributor
Posts 765
Points 39,800
CS Developers

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!

Kevin Harder

Top 75 Contributor
Male
Posts 276
Points 4,210
That's great! If you implement methods to retrive images with different sizes I would release a new version of my application for Windows Mobile (CS Mobile Gallery Manager)

José Manuel Nieto
Translator of the Spanish Language Pack for Community Server 2008
Developer of CS Writer

Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com