Hello,

I am trying to save a system.drawing.image to a file on a server....

Code VBNET:
Dim Thumbnail As System.Drawing.Image
 
Thumbnail = GetThumbnailImage(ThumbnailSize.Width, ThumbnailSize.Height, GetFilePath(strFileName, PhotoUploadFolder))
 
Thumbnail.Save(GetFilePath(strFileName, ThumbsUploadFolder))

I am getting this error on saving

A generic error occurred in GDI+.

ErrorCode: -2147467259


What am doing wrong?