Handling Binary Stream In Java Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sreedhar1980
    New Member
    • Sep 2007
    • 2

    Handling Binary Stream In Java Script

    HI All,

    Could you please Help me to Handle Binary Stream Object in Java Script.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    hi ...

    welcome to TSDN ...

    please make it more clear ... what do you have so far and what do you want to achieve? do you have any code to post here?

    kind regards

    Comment

    • sreedhar1980
      New Member
      • Sep 2007
      • 2

      #3
      Originally posted by gits
      hi ...

      welcome to TSDN ...

      please make it more clear ... what do you have so far and what do you want to achieve? do you have any code to post here?

      kind regards

      HI,

      I am trying to get image as binary stream from database. I want to handle the same in Java script to display as Graph in my UI.

      Could you please help me out in the same

      Kind regards,

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        Originally posted by sreedhar1980
        HI,

        I am trying to get image as binary stream from database. I want to handle the same in Java script to display as Graph in my UI.

        Could you please help me out in the same

        Kind regards,
        File I/O is not possible with Standard JavaScript.

        Kind regards,
        Dmjpro.

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5390

          #5
          hi ...

          sorry ... but i don't know whether this might be possible ... javascript cannot handle this as far as i know ... may be there are activex-controls for IE out there ... but that would be proprietary for IE only. javascript is able to manipulate the dom of a document, you may do a lot of validation-logik or some dhtml-things etc. but it has no file-, stream-reading abilities ...

          of course you may set img-sources dynamically ... but the images has to be provided as ready sources ... so you may do something like:

          [CODE=javacsript]img_node_ref.sr c = 'new_image_src. jpg';[/CODE]
          perhaps you may control plugins that handle streams, but js itself cannot do that ...

          kind regards

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Originally posted by sreedhar1980
            HI,

            I am trying to get image as binary stream from database. I want to handle the same in Java script to display as Graph in my UI.
            If you're getting the image from a database, you're using a server-side scripting language. Just use that to create the image on the server-side all ready for use on the client-side.

            Comment

            Working...