Converting String to UNICODE ( 2 Byte/Char) VARIANT BYTE array

Posted on 2009-02-19
Last Modified: 2013-11-25
I am integrating a signature capture device. I am receiving the captured signature is tranfered from the device as a string. The string need to be converted to UNICODE ( 2 Byte/Char) VARIANT BYTE array to transform to a BMP image using VB6.0.
Question by:Paawan
    1 Comment
    LVL 32

    Accepted Solution


    not sure of the exact format of the byte array you want is but ...

    see MSDN for StrConv function.

    Dim sInput As String
    Dim bOut() As Byte
    sInput = "Experts Rule"
    bOut = StrConv(sInput,vbUnicode)

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
    Every business owner understands the significance of online customer reviews and the impact it can have on sales and revenues. With technology advancing at such a rapid pace, getting online reviews has never been easier, especially when many regions…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now