Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
Private Shared Function GetPhotoBytes(ByVal source As IQueryable(Of Portfolio), ByVal size As PhotoSize) As Stream Dim imageBytes As Byte() Select Case size Case PhotoSize.Large imageBytes = source.Select(Function(p) p.BeforePicBytesFull).SingleOrDefault Case PhotoSize.Original imageBytes = source.Select(Function(p) p.BytesOriginal).SingleOrDefault Case PhotoSize.Small imageBytes = source.Select(Function(p) p.BytesThumb).SingleOrDefault Case Else imageBytes = source.Select(Function(p) p.BytesPoster).SingleOrDefault End Select If imageBytes IsNot Nothing Then Return New MemoryStream(imageBytes) Else Return New MemoryStream() End If End Function
|m new to VB.Net and I'm trying to figure out how to query AD to retrieve the home directory information of the currently logged in user. Any help would be greatly apprecitated. Thanks.||3||27|
|Need help with building query string||2||19|
|Function after success of Jquery/AJAX action||9||9|