CodePlexProject Hosting for Open Source Software
Do you have a sample showing how to create a PDF from a JPEG on a webserver?
I figured it out using a WebClient:
XImage jpeg = XImage.FromStream(e.Result as Stream);
I'm working on write a Header and Footer on a PDF.
My question is, what is in your example: "e.Result as Stream"?
I have two image, one for header, and one for footer.
Can you help me?
How I "convert" these on sreams?
I've been working on the silmilar stuff. I think he used WebClient. I used like this.. hope it helps you.
WebClient wc = new WebClient();
wc.OpenReadCompleted += new OpenReadCompletedEventHandler(wc_OpenReadCompleted);
wc.OpenReadAsync(new Uri("Your Http Uri"));
void wc_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
if (e.Error != null)
Stream mystream = e.Result; // here
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.