Work with 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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.