Options

BLOB 2/from XML.Attribute

rstrst Member Posts: 5
dear collegues,

how can I import/export BLOB from/to XML.Attribute ?

(MS XMLDOM)


best regards, rst

Comments

  • Options
    rmv_RUrmv_RU Member Posts: 119
    XML Text Node object ('Microsoft XML, v3.0'.IXMLDOMText) has SubstringData method, you can use it for reading large texts.
    Also, look at this topic viewtopic.php?f=23&t=44086 .
    Looking for part-time work.
    Nav, T-SQL.
  • Options
    rstrst Member Posts: 5
    rmv_RU wrote:
    XML Text Node object ('Microsoft XML, v3.0'.IXMLDOMText) has SubstringData method, you can use it for reading large texts.
    Also, look at this topic viewtopic.php?f=23&t=44086 .

    thank You, rmv.
    some questions please.

    can I use Text Node for put binary data into it's value ?

    if no, how can I encoding binary to base64 by MSXML libraries more simply ?

    and how can I point XML data type in case of external base64 encoding ?
  • Options
    rmv_RUrmv_RU Member Posts: 119
    Try to use AdoStream object in binary mode and xmlNode.nodeTypedValue to manipulate with binary data.
    Looking for part-time work.
    Nav, T-SQL.
  • Options
    rstrst Member Posts: 5
    rmv_RU wrote:
    Try to use AdoStream object in binary mode and xmlNode.nodeTypedValue to manipulate with binary data.

    rmv, many thanks
    I'll try to use Your advices
  • Options
    rstrst Member Posts: 5
    rmv_RU wrote:
    XML Text Node object ('Microsoft XML, v3.0'.IXMLDOMText) has SubstringData method, you can use it for reading large texts.
    Also, look at this topic viewtopic.php?f=23&t=44086 .

    many thanks to all people who are interesting this subject and especially to You, rmv

    about types

    IXMLDOMAttribute.value is Navision type - Variant and COM type - VARIANT *

    methods IXMLDOMText.substringData and IXMLDOMText.appendData
    http://msdn.microsoft.com/en-us/library ... 85(v=vs.85).aspx
    http://msdn.microsoft.com/en-us/library ... 44(v=vs.85).aspx
    these methods have BSTR and BSTR * data types for parameters "data"
    F5 hot key diplays BSTR as type for parameter/result value "data" in Navision, and no more.

    my main question is - how should I create InStream OutStream from Navision for manipulate with "data"
    intuitively there must be some functions MSXMLDOM.CreateIn(Out)Stream generating these streams

    say me their names my friends )
    or break my hopes ...

    PS - little question : how can I write URLs for they work correctly ?
Sign In or Register to comment.