HI all i am using Graphics Mill to set a  image in the psd file but i  am getting error
when i reach this following code  
 Aurigma.GraphicsMill.Bitmap photo = new Aurigma.GraphicsMill.Bitmap(stream);i am using  the code
if (fpUplaodLogo.HasFile)
            {
                using (BinaryReader reader = new BinaryReader
                            (fpUplaodLogo.PostedFile.InputStream))
                {
                    image = (byte[])(reader.ReadBytes
                            (fpUplaodLogo.PostedFile.ContentLength));
                    // SaveImage(image);
                }
            }
            //byte[] data = (byte[])(["Photo"]);
            System.IO.MemoryStream stream = new System.IO.MemoryStream();         
            int offset = 78;
            stream.Write(image, offset, image.Length - offset);           
            try
            {
            Aurigma.GraphicsMill.Bitmap photo = new Aurigma.GraphicsMill.Bitmap(stream);           
            updatedLayers.Add("image", photo);
            updatedLayers.Add("title1", txtComNm.Text);
            updatedLayers.Add("title2", txtCompDesc.Text);
            updatedLayers.Add("heading ", txtComNm.Text);            
            imgFastTrackPsd.Visible = true;
            BitmapViewer1.Bitmap = RasterizePsd(Server.MapPath("/psdimage/Add2.psd"), updatedLayers);
        }
        catch (Aurigma.GraphicsMill.Codecs.MediaUnsupportedException)
        {
            updatedLayers.Add("title1", txtComNm.Text);
            updatedLayers.Add("title2", txtCompDesc.Text);
            updatedLayers.Add("heading ", txtComNm.Text);
            updatedLayers.Add("subheading", txtCompDesc.Text);
            updatedLayers.Add("salary-details", txtAbtUs.Text);
            updatedLayers.Add("locations-details", txtLoc.Text);
            // updatedLayers.Add("aboutus", txtAbtUs.Text);
            updatedLayers.Add("keyrequirements-details", txtKeyRequirement.Text);
            updatedLayers.Add("whyshouldyouapply-details", txtYApply.Text);
            updatedLayers.Add("numberofpositions-details", txtNoPos.Text);
            updatedLayers.Add("other-details", txtOthers.Text);
            updatedLayers.Add("joborderdetails-details", txtJODet.Text);
            imgFastTrackPsd.Visible = true;
            BitmapViewer1.Bitmap = RasterizePsd(Server.MapPath("/psdimage/Spotlighter-Add2.psd"), updatedLayers);
        }
my problem is that when i upload a jpg image i am getting MediaUnsupportedException error . any help most appreciated can u pls any one tell where i am worng
thanks and regards,
sunil T 
Edited by user Friday, January 25, 2008 5:12:46 PM(UTC)
 | Reason: Not specified