Embedded Image Class Instantiating Error

Hi,
I have an embeded image class. When trying to create an instance of this Class object, a "Type Coercion failed" error came up.  I've included my code below. If someone would enlighten me on the right way to do that I would appreciate it.
          [Embed(source="assets/images/flagicon.png", mimeType="application/octet-stream")]
          private var flag:Class;
          var myByteArr:ByteArray = new flag();
          //Type Coercion failed: cannot convert 'flag' to flash.utils.ByteArray.
Thanks,

Try this..
var bitmap:BitmapAsset = new flag() as BitmapAsset;
var bData:BitmapData = bitmap.bitmapData;
Hope this helps,
BaBo,

Similar Messages

  • Extending Image class and addChild errors

    I am attempting to extend the Image class to allow us to place highlights over an image that are stored in an XML file. 
    I'm extending the class and adding the highlights to a sprite.  I use the addChild() method to add the sprite to the Image class, but I get the error "addChild() is not available in this class. Instead, use addElement() or modify the skin, if you have one."
    I try to use the addElement but that gives me compile errors..
    anyone have any idea what to do?  I'm trying to copy/paste the class code here, but its not working (no idea how to make it work)

    Update to last posting,
    Since the Primtive Class is extending Group I just added TransformGroup to it. To this TransformGroup object I add 4 TransformGroup objects and it all works fine. I was able to rotate all the 4 triangles at different rates.
    This is how it looks now :-
    http://www.tzi.de/~fayyaz/2.bmp
    Now I just want to shift the centre of rotation of all the triangles to the center and rotate the TOP and Bottom triangles along the x-axis.
    Assume I just have to add these operations to a TransformGroup above a single shape which is a single triangle. How do I do it. I know the answer is really simple but it beats me.
    Thanx in advance.

  • Embedded image in html body of the email is not appearing in Outlook mail box

    My application Basically gets the un delivered emails from the outlook account.Composes the email from information then also appends the signature of email.The signatures may be multiple , form will show these signatures as a dropdown usin webbrowser control there both image as well as links appear well.But the same if draft them to outlook drafts folder the image in the signature misses and shows image not available.II fetch the signature from user local signature folder , convert it base64 string and set the string as source for image element and append this body of the email.I basically use Outlook COM object to achieve thesepublic void AddImageContentToHtml(List<TamDetails> tamList,string html,string key)
    string htmlContent = html as string;
    string imageSource = string.Empty;
    HtmlNode signatureNode = null;
    HtmlNodeCollection nodeCollection = null;
    List<string> imagePaths = null;
    string requiredImage = string.Empty;
    string base64Image = string.Empty;
    if (!string.IsNullOrWhiteSpace(key))
    imagePaths = ImageDict[key];
    foreach (string strPath in imagePaths)
    //string appDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Microsoft\\Signatures";
    requiredImage = strPath;
    string [] commonPath = { Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Microsoft", "Signatures")};
    string[] validPaths = requiredImage.Split(commonPath, StringSplitOptions.RemoveEmptyEntries);
    if (validPaths.Count() > 1)
    var path1 = commonPath[0];
    var path2 = validPaths[1];
    int index = path2.IndexOf('/');
    path2.Remove(index);
    requiredImage = path1 + path2;
    if (!string.IsNullOrEmpty(requiredImage))
    if (File.Exists(requiredImage))
    base64Image = CreateBase64Image(requiredImage);
    string fileExtension = Path.GetExtension(requiredImage);
    imageSource = "data:image/" + fileExtension.Remove(0, 1) + ";base64," + base64Image;
    if (!string.IsNullOrWhiteSpace(htmlContent))
    try
    HtmlDocument htmlDoc = new HtmlDocument();
    if (!string.IsNullOrEmpty(imageSource))
    htmlContent=htmlContent.Replace(requiredImage, imageSource);
    htmlDoc.LoadHtml(htmlContent);
    // HtmlNode node = new HtmlNode()
    signatureNode = (htmlDoc.DocumentNode.Descendants("body").FirstOrDefault());
    nodeCollection = signatureNode.ChildNodes;
    catch (Exception ex)
    AppLogException.LogError("Error in appending Signature Image", ex);
    if (tamList != null)
    tamList.ForEach(a =>
    //StringWriter sw = new StringWriter(new StringBuilder(a.MailItem.HTMLBody));
    HtmlDocument doc = new HtmlDocument();
    doc.LoadHtml(a.SourceEmail);
    var node = doc.DocumentNode.Descendants("div").FirstOrDefault();
    if(nodeCollection != null && node != null)
    foreach (var childNode in nodeCollection)
    node.AppendChild(childNode);
    a.MailItem.HTMLBody = doc.DocumentNode.OuterHtml;
    //using(HtmlTextWriter htmlWriter = new HtmlTextWriter(sw,a.MailItem.HTMLBody))
    // htmlWriter.RenderBeginTag(HtmlTextWriterTag.Div);
    // if(!string.IsNullOrWhiteSpace(signatureNode))
    // htmlWriter.
    // htmlWriter.RenderEndTag();
    }My mail html body is <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:w="urn:schemas-microsoft-com:office:word"
    xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
    xmlns="http://www.w3.org/TR/REC-html40">
    <head>
    <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
    <meta name=ProgId content=Word.Document>
    <meta name=Generator content="Microsoft Word 14">
    <meta name=Originator content="Microsoft Word 14">
    <link rel=File-List href="Sanjay%20S_files/filelist.xml">
    <link rel=Edit-Time-Data href="Sanjay%20S_files/editdata.mso">
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    <o:OfficeDocumentSettings>
    <o:AllowPNG/>
    </o:OfficeDocumentSettings>
    </xml><![endif]-->
    <link rel=themeData href="Sanjay%20S_files/themedata.thmx">
    <link rel=colorSchemeMapping href="Sanjay%20S_files/colorschememapping.xml">
    <!--[if gte mso 9]><xml>
    <w:WordDocument>
    <w:View>Normal</w:View>
    <w:Zoom>0</w:Zoom>
    <w:TrackMoves/>
    <w:TrackFormatting/>
    <w:PunctuationKerning/>
    <w:ValidateAgainstSchemas/>
    <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
    <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
    <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
    <w:DoNotPromoteQF/>
    <w:LidThemeOther>EN-US</w:LidThemeOther>
    <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
    <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
    <w:DoNotShadeFormData/>
    <w:Compatibility>
    <w:BreakWrappedTables/>
    <w:SnapToGridInCell/>
    <w:WrapTextWithPunct/>
    <w:UseAsianBreakRules/>
    <w:DontGrowAutofit/>
    <w:SplitPgBreakAndParaMark/>
    <w:EnableOpenTypeKerning/>
    <w:DontFlipMirrorIndents/>
    <w:OverrideTableStyleHps/>
    <w:UseFELayout/>
    </w:Compatibility>
    <m:mathPr>
    <m:mathFont m:val="Cambria Math"/>
    <m:brkBin m:val="before"/>
    <m:brkBinSub m:val="&#45;-"/>
    <m:smallFrac m:val="off"/>
    <m:dispDef/>
    <m:lMargin m:val="0"/>
    <m:rMargin m:val="0"/>
    <m:defJc m:val="centerGroup"/>
    <m:wrapIndent m:val="1440"/>
    <m:intLim m:val="subSup"/>
    <m:naryLim m:val="undOvr"/>
    </m:mathPr></w:WordDocument>
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
    DefSemiHidden="true" DefQFormat="false" DefPriority="99"
    LatentStyleCount="267">
    <w:LsdException Locked="false" Priority="0" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 1"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 2"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 3"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 4"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 5"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 6"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 7"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 8"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 9"/>
    <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
    <w:LsdException Locked="false" Priority="10" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Title"/>
    <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
    <w:LsdException Locked="false" Priority="11" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
    <w:LsdException Locked="false" Priority="22" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
    <w:LsdException Locked="false" Priority="20" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
    <w:LsdException Locked="false" Priority="59" SemiHidden="false"
    UnhideWhenUsed="false" Name="Table Grid"/>
    <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
    <w:LsdException Locked="false" Priority="1" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 1"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
    <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
    <w:LsdException Locked="false" Priority="34" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
    <w:LsdException Locked="false" Priority="29" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
    <w:LsdException Locked="false" Priority="30" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 1"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 2"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 2"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 3"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 3"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 4"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 4"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 5"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 5"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 6"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 6"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
    <w:LsdException Locked="false" Priority="19" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
    <w:LsdException Locked="false" Priority="21" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
    <w:LsdException Locked="false" Priority="31" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
    <w:LsdException Locked="false" Priority="32" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
    <w:LsdException Locked="false" Priority="33" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
    <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
    <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
    </w:LatentStyles>
    </xml><![endif]-->
    <style>
    <!--
    /* Font Definitions */
    @font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;
    "Times New Roman";
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    margin:0in;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    "Times New Roman";
    "Times New Roman";
    p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
    "E-mail Signature Char";
    margin:0in;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    "Times New Roman";
    "Times New Roman";
    span.E-mailSignatureChar
    {"E-mail Signature Char";
    "E-mail Signature";}
    .MsoChpDefault
    font-size:11.0pt;
    "Times New Roman";
    "Times New Roman";
    @page WordSection1
    {size:8.5in 11.0in;
    margin:1.0in 1.0in 1.0in 1.0in;
    div.WordSection1
    {page:WordSection1;}
    -->
    </style>
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable
    {"Table Normal";
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    </style>
    <![endif]-->
    </head>
    <body lang=EN-US style='tab-interval:.5in'>
    <div
    <p S<o:p></o:p></p>
    <p
    <p
    <p gte vml 1]><v:shapetype id="_x0000_t75"
    coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
    filled="f" stroked="f">
    <v:stroke joinstyle="miter"/>
    <v:formulas>
    <v:f eqn="if lineDrawn pixelLineWidth 0"/>
    <v:f eqn="sum @0 1 0"/>
    <v:f eqn="sum 0 0 @1"/>
    <v:f eqn="prod @2 1 2"/>
    <v:f eqn="prod @3 21600 pixelWidth"/>
    <v:f eqn="prod @3 21600 pixelHeight"/>
    <v:f eqn="sum @0 0 1"/>
    <v:f eqn="prod @6 1 2"/>
    <v:f eqn="prod @7 21600 pixelWidth"/>
    <v:f eqn="sum @8 21600 0"/>
    <v:f eqn="prod @7 21600 pixelHeight"/>
    <v:f eqn="sum @10 21600 0"/>
    </v:formulas>
    <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
    <o:lock v:ext="edit" aspectratio="t"/>
    </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:381.75pt;
    height:63.75pt'>
    <v:imagedata src="Sanjay%20S_files/image001.png" o:title="Signature"/>
    </v:shape><![endif]--><![if !vml]><img width=509 height=85
    src="Sanjay%20S_files/image001.png" v:shapes="_x0000_i1025"><![endif]><o:p></o:p></p>
    <p
    </div>
    </body>
    </html>

    Hi ssanjay.brillio,
    According to your description, you'd like to send a email with an embedded image in the signature.
    I suggest you sending the image in the last of the body of email instead of operating the signature of email.
    The following example codes demonstrate how to send email using ImportHtml method with embedded images.
    SmtpMail oMail = new SmtpMail("TryIt");
    SmtpClient oSmtp = new SmtpClient();
    // Set sender email address, please change it to yours
    oMail.From = "[email protected]";
    // Set recipient email address, please change it to yours
    oMail.To = "[email protected]";
    // Set email subject
    oMail.Subject = "test HTML email with embedded image";
    // Your SMTP server address
    SmtpServer oServer = new SmtpServer("smtp.emailarchitect.net");
    // User and password for ESMTP authentication, if your server doesn't require
    // User authentication, please remove the following codes.
    oServer.User = "[email protected]";
    oServer.Password = "testpassword";
    // If your smtp server requires SSL/TLS connection, please add this line
    // oServer.ConnectType = SmtpConnectType.ConnectSSLAuto
    try {
    // Import html body and also import linked image as embedded images.
    // 'test.gif is in c:\\my picture
    oMail.ImportHtml("<html><body>test <img src=\"test.gif\"> importhtml</body></html>", "c:\\my picture", ImportHtmlBodyOptions.ImportLocalPictures | ImportHtmlBodyOptions.ImportCss);
    Console.WriteLine("start to send email with embedded image ...");
    oSmtp.SendMail(oServer, oMail);
    Console.WriteLine("email was sent successfully!");
    } catch (Exception ep) {
    Console.WriteLine("failed to send email with the following error:");
    Console.WriteLine(ep.Message);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Emdedding swf file as class throws error while previewing the component

    Dear all,
    I am using Flex SWFLoader to load an animated swf file and added it as a component in xcelsius by add on manager. When i click preview button it throws the folloing error.
    TypeError: Error #2023: Class must inherit from Sprite to link to the root.
    I am embedding swf file by using the following lines of code
    Embed('Animation_1.swf')
    public var Animation:Class;
    Then i tried to create my class by extending Sprite, i got the same error,
    Can you please anyone help me to solve this issue, all i need is the way to emded the swf file as class and using it in xcelsius. The embedded swf class is working fine alone (that is outside to the xcelsius).
    Thanks & Regards,
    Manimaran.
    Edited by: manimaraninfo on Jun 18, 2009 10:47 AM
    Edited by: manimaraninfo on Jun 18, 2009 10:48 AM

    Hi
    To embed a .swf file in xcelsius using SWFLoader, you have to pass the path of that swf file to the source property of SWFLoader.
    By using class concept xcelsius does not get the path of the swf file you have embeded.
    In flex It gets that file because that swf file is present in the same directory as your application.
    Hope this helps
    Regards
    Rush-me

  • OBIEE v11.1.1.5 - Cannot view embedded images  ( PDF/HTML)

    Hi Everyone,
    I have a OBIEE 11g report with embedded images and I scheduled to run every week using an agent.
    When I specify Delivery content and format as ( PDF or Plain HTML ) the email does not display any images
    Error if format is HTML : The linked image cannot be displayed. The File moved,renamed, or deleted. Verify  that the link points to the correct  file and location.
    I also tried printing to pdf, but images are not displayed.
    Tried using both fmap and html syntax to link images. Has any one encountered this issue in v 11.1.1.5 ?
    Please suggest
    Thanks

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this test is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The "Guest User" login created by "Find My Mac" is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.

  • OT: Embedding images in email (PHP)

    Does anyone know of a good PHP tutorial for embedding images
    in an HTML
    email?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================

    Purr-fect. Thanks, Steve.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Steve" <[email protected]> wrote in message
    news:[email protected]..
    > On Mon, 4 Dec 2006 07:02:15 -0500, "Murray *ACE*"
    > <[email protected]> wrote:
    >
    >>Does anyone know of a good PHP tutorial for embedding
    images in an HTML
    >>email?
    >
    > I found this thread which deals with this subject:
    >
    >
    http://p2p.wrox.com/topic.asp?TOPIC_ID=31999
    >
    > and in it is a reference to www.phpguru.com which ahs
    examples here:
    >
    >
    http://www.phpguru.org/static/mime.mail.html
    >
    > Seems you can download a class to what you want.
    >
    > --
    > Steve
    > steve at flyingtigerwebdesign dot com

  • Embedded images replaced with blue square/question mark

    Guys,
    Am new to Macs so it's probably user error however, I regularly receive mails with embedding images in them. On my PC I had they came in fine however on my new Mac all the images get stripped out of the e-mail and saved as attachments. This means all the image place holders in the mail show as small blue squares with a white question mark in them and doing quick look on the attachments shows the correct images!
    Is there a config setting that stops mail stripping the images off as attachments when they're "in" an e-mail??
    Hope someone can help as this is bugging me now!!
    Thanks,
    Mark

    Don't know if this suggestion will help but..........
    I experienced problems with attaching images to outgoing mail. When I did this with my new iMac (OSX 10.4.11) the attached files were replaced with a blue square containing a question mark.
    I browsed various forums and found quite a few references to the same problem and I tried all the various 'fixes' to no avail.
    Earlier today I called Apple's tech support and spoke with Mujahid. He went through the problem, established that it was 'system wide' on my iMac and then he suggested that I trash Mail (v2.1.2) and re-install Mail (only Mail) from the disks that came with my Mac. I followed his instructions and after a shut down/restart cycle, Mail now functions correctly. When I attach an image file to an outgoing email, the file no longer appears as a blue square with ? mark but as the original image.
    I wonder if the same sort of fix might resolve the problems with Safari?
    Thanks to Mujahid.
    Regards.
    Niall

  • Embedding images into connector.

    I've created a custom component that will pop-up to display errors when my connector has problems.  After working around some styling limitations within the SDK, I've managed to get everything laid out and working great.  Now I'm at the last hurtle.
    I've embedded images that will be displayed.  For example, an image to represent an error.  Now during debugging in Flex Builder, obviously, the image displays.  I compile and package up my component and head off to Xcelsius.  Now this is when it gets weird.
    I'm using Xcelsius Enterprise 5.3.0.0, Build No. 12,3,0,670
    I add in my connector to a dashboard, and then press "Preview" (no configuration needed, as i just display a test message for now).
    The dashboard comes up, the test message is displayed, but no image is present.
    Now i click on "Preview" again to get back into the designer.  Then i press preview again without making any other clicks or changes to the dashboard.  Now i'm presented with a dashboard, the message pops up, and my image is clearly visible.
    The image is consistently not displayed on the very first preview of the dashboard.  And it's consistently displayed in the second and any future previews of the dashboard.

    Hi
    That is a bug actually. you can follow
    Problem with button Icons
    Hope helps
    Rush-me

  • No embedded images on mail

    In Mail, I can not see any embedded image. The attached images no problem, but the ebedded are seen as a blue square with a question mark.
    No newsletter visible.
    I have checked the "view remote images on HTML messages", but , .....nothing
    Any ideas????
    Thanks

    I think I discovered the answer which, if true, was a real coincidence. Just at the time that I was getting the "No error" message each time I tried to go into the tracking site, I noticed that the Apple Store was down. As soon as it came up, I was able to get into the tracking site. I am sure this was the problem but it sure was strange how everything came together.

  • Illustrator CC opens file showing missing embedded images. Illustrator 5.1 opens same file fine with no missing images.

    How do I get CC to open these files correctly? Is the client saving them incorrectly?
    My work around has now become a pain & I need to know why Illustrator CC tells me most/all embedded images are missing in files received by clients.
    Illustrator 5.1 opens the files ok & gives me no errors. It does a few funky things because ti says the file was produced with a new version. The file previews fine in the Finder window & shows all images. The issue with opening them in 5.1 is it wants to open 1 page at a time like the AI file is a PDF.
    Why is CC failing to recognize the embedded images? Are the images not embedded correctly by the client? Is 5.1 pulling from some lower res version of the images? Files export from 5.1 as hires. Stumped.
    Oh my gosh why arent they just using InDesign. : (

    Please get informed about how Illustrator saves files and what exactly is in a file and how it is re-opened.
    See: http://rwillustrator.blogspot.de/2006/11/whats-in-file.html
    When in Illustrator CS5, Illustrator actually opens the PDF part of the file that contains all the images. Always.
    When in Illustrator CC, Illustrator accesses the AI part of the file, which doesn't necessarily contain the images.

  • How To: Using Embedded Images for Drawing Fills

    I had some challenges making this seemingly simple feature work, so as I found no examples, I made an example on how to do this.  The key I found was using the “BitmapAsset” class which is compatible with posting our embedded image into BitmapData objects. That put things together.
    See the full narrative at:  http://digitalshowcase.biz/wordpress/?p=234
    Download the Flex Project here:  http://digitalshowcase.biz/flex/FillsWithEmbeddedImages.zip
    - Alan Gruskoff, Digital Showcase LLC

    >>says that this export technique does not work, it produces a low res screen version of the file.
    Are you certain the original files were any better?
    My preferred method of doing this works well, but it takes a few extra steps. I'd make a high-res PDF out of the PM file, then pick apart the PDF to extract the graphics. Are the graphics raster or vector? If they're raster, you can use Acrobat's Touch-up Object tool to open them in Photoshop. If they're vector, you can open the PDF in Illustrator and save out the graphics from there.
    HTH

  • How to insert embedded image into TextArea htmlText (and add IOErrorEvent.IO_ERROR listener).

    I unsuccessfully tried to find way to insert embedded image into TextArea via <img> tag. Can you point me out how to do this?
    Also, please, tell me how to handle IOErrorEvent from TextArea because adding IOErrorEvent.IO_ERROR listener to TextArea doesn't cause any effect when image url of img tag has not been found.
    Thanks

    i 've successfully inserted the image into the database... here is my code
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package PMS;
    import java.io.File;
    import java.io.FileInputStream;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    public class Browse_java
    static Connection con=null;
    public static void main(String args[])
    try{
    System.out.println("(browse.java) just entered in to the class");
    con = new PMS.DbConnection().getConnection();
    System.out.println("(browse.java) connection string is"+con);
    PreparedStatement ps = con.prepareStatement("INSERT INTO img_exp VALUES(?,?)");
    System.out.println("(browse.java) prepare statement object is"+ps);
    File file =new File("C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    FileInputStream fs = new FileInputStream(file);
    byte blob[]=new byte[(byte)file.length()];
    fs.read(blob);
    ps.setString(1,"C:/Documents and Settings/Administrator/Desktop/Leader.jpg");
    ps.setBytes(2, blob);
    System.out.println("(browse.java)length of picture is"+fs.available());
    int i = ps.executeUpdate();
    System.out.println("image inserted successfully"+i);
    catch(Exception e)
    e.printStackTrace();
    finally
    try {
    con.close();
    } catch (SQLException ex) {
    ex.printStackTrace();
    }

  • Messenger Express 6 Unable to display embedded images

    Hi
    Messenger Expresss seems tob unable to display embedded images (gif or jpeg) in the form cid:image.gif and some hosted images. In reference to the the cid:image.gif , when I open the email get an error from the browser that states "Warning: the application cid must be lauched to view this file." or something close to that. It gives me a choice of opening "cid" or canceling. There is also a check box "remember my choice for all files." which I choose and then I get an email full of broken image links.
    I've tried this in Firefox and IE the routine is a bit different but the result is the same. No images displayed.
    I also used a netflix email I recieved.. some of the images displayed some did not. The ones that did display were from www.netflix.com some of the others hosted on an image server somewhere in the netflix namespace did not.
    I'm at a loss. If anyone can shed some light on this I'd be very thankful
    Erik

    I was speaking about what client created the original mail messate.
    The "error message" isn't very useful. Is the mail message itself is badly formed, then the problem lies with the client that created it.
    You should be able to tell from the headers of the message.
    If you have the message file on disk, examine it with a text editor. "Message file on disk" means the original file, as stored on the server as a xxx.msg file, not what any client might save to a local disk.
    When we work these kinds of things as tech support cases, we start out with this file.
    I have no idea what gmail does, so that's not really relevant.
    Your IMAP client may be better at displaying badly formed messages than webmail is.

  • Problem with embedding images in a textField

    I am trying to embed images in an html text field.
    I am using the following in the txt file that gets loaded
    into the html text box, but the image does not show up.
    <img src='art_home.jpg'>
    art_home.jpg is the linkage id.
    I have also tried it with a movie clip, but it would not work
    either.
    What am I doing wrong? Where could I start to look? I am
    somewhat lost on this...
    Thanks a lot!

    Hi, thanks a lot.
    What you are describing, is what it seems to be doing, as it
    reports errors loading the images. I thought I was reading that I
    could substitute src path to an image, with a linkage ID in the
    library. Is that not the case?
    "- src Specifies the URL to a JPEG or SWF file, or the
    linkage identifier for a movie clip symbol in the library."
    I read this here:
    http://blog.inventis.be/embedding-images-and-movie-clips-in-flash-text-fields/
    Thanks a lot.

  • Drag n Drop with Non-embedded Images?

    Hi,
    All of the Drag 'n Drop demos use an embedded image. For
    example:
    [Embed(source='someImage.jpg')]
    public var someImage:Class;
    // in the drag handler...
    var imageProxy:Image = new Image();
    imageProxy.source = someImage;
    And that works. However, this doesn't work:
    <mx:Image id="myImage" source="someImage.jpg"/>
    // in the drag handler...
    var imageProxy:Image = new Image();
    imageProxy.source = myImage.source;
    Am I missing something? Or is embedding mandatory?

    Hi,
    another idea:
    Go to analysis mode in your workbook.
    a) Select your analysis grid.
    At general tab -> activate "apply formatting" and "allow navigation".
    Refer here: [http://help.sap.com/saphelp_nw2004s//HELPDATA/EN/85/1321d0b7864766b5208a0b221a7608/frameset.htm]
    or
    b) Select navigation pane
    Activate "Allow navigation"
    Refer here:
    [http://help.sap.com/saphelp_nw2004s//HELPDATA/EN/85/1321d0b7864766b5208a0b221a7608/frameset.htm]
    Good luck
    Regards
    Edited by: Tobias on Jun 5, 2008 5:18 PM

Maybe you are looking for

  • How can I see if someone is linked to my icloud on my ios

    how can I find out if some one hacked me icould

  • 2012 Dynamic Event Registration Array of Controls

    In upgrading to LV2012, I have discoverd what may be a bug, or at least an incompatability between 2011 and 2012 with respect dynamic event registration of an array of controls as opposed to individual control references. This bit of code worked in 2

  • Problem with hx:fileupload

    Hello! I have a new problem. I'm using a hx:fileupload tag, but when I write in this input text intead of selecting the browse button I get a javascript error. I have read that is a problem only with IE, so I need to make readonly this field. I have

  • Realtek8139 on Solaris 8 (x86) post driver install

    I installed the realtek drivers (1.03A) and everything seems to work correctly. Dmesg shows that it detects the nics (2) and shows their mac addresses. But upon a ifconfig -a, only the lo is displayed. Neither realtek shows up. What could i be missin

  • Help- Deleted Masters and Trying to Recover via Thumbnails!!!

    In an idiotic move, I just deleted the master images for an entire, very important, album. Nevertheless, I'm still seeing the thumbnails and large size previews in my Aperture photo album. They're decent quality and if I could even just be able to ac