public static IPostgresTuple ToTuple(SecureString value) { if (value == null) { return(null); } return(ByteaConverter.ToTuple(ExtractBytesAndEcrypt(value))); }
public static IPostgresTuple ToTuple(Image value) { if (value == null) { return(null); } var cms = ChunkedMemoryStream.Create(); SaveImage(value, cms); cms.Position = 0; return(ByteaConverter.ToTuple(cms, true)); }