Using iTextSharp, I can get a normal image (http://www.domain.com/name.jpg) added fine but if I create a generic handler to re-size a image and add a watermark it doesn't seem to work. Here is what I am doing:
This returns 'IOException was unhandled' and says the url is 'not a recognized imageformat'.
Then I tried:
This returns 'ArgumentException was unhandled' and says 'Parameter is not valid'.
Any other thoughts on how to use my handler to use with iTextSharp?
Code:
Dim sFullImgUrl As String = "http://www.domain.com/ThumbnailHandler.ashx?id=1234&thumb=yes"
Dim imgItem As iTextSharp.text.Image = iTextSharp.text.Image.GetInstance(New Uri(sFullImgUrl))Then I tried:
Code:
Dim sFullImgUrl As String = "http://www.domain.com/ThumbnailHandler.ashx?id=1234&thumb=yes"
Using wc As New Net.WebClient
Dim img As System.Drawing.Image = System.Drawing.Image.FromStream(wc.OpenRead(sFullImgUrl))
End UsingAny other thoughts on how to use my handler to use with iTextSharp?