Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Base64 encoded data and the SQL Adapter
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sean Carpenter  
View profile  
 More options Sep 23 2005, 9:51 am
Newsgroups: microsoft.public.biztalk.general
From: "Sean Carpenter" <stcarpenter2...@community.nospam>
Date: Fri, 23 Sep 2005 09:51:52 -0400
Local: Fri, Sep 23 2005 9:51 am
Subject: Base64 encoded data and the SQL Adapter
I have an orchestration that is retrieving data from one SQL Server
instance, doing some processing, and inserting the data into another SQL
Server instance.  One of the fields being moved is stored in an image column
in both the source and destination SQL Server instances.

In the stored procedure for the receive location, I am using the BINARY
BASE64 option with FOR XML to get base64 encoded data.  When I genererate an
adapter from this stored procedure, the generated schema has the data type
of this field set to "xs:base64Binary", which seems appropriate.  On the
destination side, I have a stored procedure for inserting the processed data
that contains a parameter of type image.  When I generate an adapter from
this destination procedure, the data type of the image field is again set to
"xs:base64Binary" in the generated schema.  I was hoping that this meant
that the SQL adapter would decode the base64 data back to binary, but that
doesn't seem to be the case.  Is there any way to get the base64 data
decoded back to binary?  I checked the BizTalk help and it recommends using
a stored procedure for binary data which is what I'm doing.

I'm open to using an updategram with a mapping schema if that will work and
someone can point me to some information on doing that from within BizTalk
(where would the mapping schema be saved, etc.).

Thanks for your help,
Sean Carpenter


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Peter Huang" [MSFT]  
View profile  
 More options Sep 24 2005, 4:44 am
Newsgroups: microsoft.public.biztalk.general
From: v-phu...@online.microsoft.com ("Peter Huang" [MSFT])
Date: Sat, 24 Sep 2005 08:44:54 GMT
Local: Sat, Sep 24 2005 4:44 am
Subject: RE: Base64 encoded data and the SQL Adapter
Hi,

Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"WenJun Zhang[msft]"  
View profile  
 More options Sep 26 2005, 5:53 am
Newsgroups: microsoft.public.biztalk.general
From: v-wzh...@online.microsoft.com ("WenJun Zhang[msft]")
Date: Mon, 26 Sep 2005 09:53:00 GMT
Subject: RE: Base64 encoded data and the SQL Adapter
Hi Sean,

Did you try to send the updategram with base64 encoded field
(xs:base64Binary) back with the SQL adapter, and then meet a type
convert error?

If so, this should be a SQLXML issue because the decoding isn't done
at the biztalk SQL adapter sending message stage. The following is a
sample about inserting image via updategram. It uses
dt:type="bin.base64" .

Using Updategrams to Store Data in an Image Column
http://www.windowsitpro.com/SQLServer/Article/ArticleID/23033/23033.ht
ml

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Carpenter  
View profile  
 More options Sep 26 2005, 8:24 am
Newsgroups: microsoft.public.biztalk.general
From: "Sean Carpenter" <stcarpenter2...@community.nospam>
Date: Mon, 26 Sep 2005 08:24:17 -0400
Local: Mon, Sep 26 2005 8:24 am
Subject: Re: Base64 encoded data and the SQL Adapter
Yes, I get a type conversion error from the SQL Server.

As I said, I'm willing to try an updategram with a mapping schema (like the
referenced article) if you can direct me how to do this in BizTalk 2004.
How do I get BizTalk to generate an updategram with a reference to a mapping
schema?  And where is the mapping schema saved?  Since I'm using BizTalk and
the SQL adapter I don't have any virutal directories configured for SQL
Server.

Sean Carpenter

""WenJun Zhang[msft]"" <v-wzh...@online.microsoft.com> wrote in message

news:1hb$cAowFHA.3908@TK2MSFTNGXA01.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"WenJun Zhang[msft]"  
View profile  
 More options Sep 27 2005, 4:53 am
Newsgroups: microsoft.public.biztalk.general
From: v-wzh...@online.microsoft.com ("WenJun Zhang[msft]")
Date: Tue, 27 Sep 2005 08:53:09 GMT
Local: Tues, Sep 27 2005 4:53 am
Subject: Re: Base64 encoded data and the SQL Adapter
Hi Sean,

Please refer to the following chapters in Biztalk SDK about using
updategrams in a SQL send port:

SQL Send Adapter
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/opera
tions/htm/ebiz_ops_adapt_sql_xvpz.asp

Using the SQL Adapter with an Updategram in an Orchestration
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/opera
tions/htm/ebiz_prog_adapt_qspb.asp

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Carpenter  
View profile  
 More options Sep 27 2005, 8:31 am
Newsgroups: microsoft.public.biztalk.general
From: "Sean Carpenter" <stcarpenter2...@community.nospam>
Date: Tue, 27 Sep 2005 08:31:35 -0400
Local: Tues, Sep 27 2005 8:31 am
Subject: Re: Base64 encoded data and the SQL Adapter
I understand how to use an updategram.  The problem is with the conversion
of the base64 encoded data to a SQL Server image column.  When I use an
updategram, I get the same type conversion error as I do when using a stored
procedure.  The articles you reference do not contain any information on
using a mapping schema so that I could specify the sql:datatype="image"
annotation.

Is converting binary data from base64 encoded not supported in BizTalk 2004?

Sean Carpenter

""WenJun Zhang[msft]"" <v-wzh...@online.microsoft.com> wrote in message

news:$OCgpD0wFHA.780@TK2MSFTNGXA01.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"WenJun Zhang[msft]"  
View profile  
 More options Sep 28 2005, 5:10 am
Newsgroups: microsoft.public.biztalk.general
From: v-wzh...@online.microsoft.com ("WenJun Zhang[msft]")
Date: Wed, 28 Sep 2005 09:10:54 GMT
Local: Wed, Sep 28 2005 5:10 am
Subject: Re: Base64 encoded data and the SQL Adapter
Hi Sean,

SQLXML is able to accept the bin.base64 data type and convert it back
to binary before inserting. So you needn't look for the way to
perform the convert within Biztalk.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Carpenter  
View profile  
 More options Sep 28 2005, 12:38 pm
Newsgroups: microsoft.public.biztalk.general
From: "Sean Carpenter" <stcarpenter2...@community.nospam>
Date: Wed, 28 Sep 2005 12:38:38 -0400
Local: Wed, Sep 28 2005 12:38 pm
Subject: Re: Base64 encoded data and the SQL Adapter
I think you're missing the point.  The only references I've seen for SQLXML
converting from base64 (including the article you referenced) have to do
with using a mapping schema with a virtual directory.  I don't know how to
use a mapping schema from within BizTalk.  Can anyone provide any
information on doing that?  The fact that it works outside of BizTalk is of
no use to me since I need to insert the data by using BizTalk and not by
executing a template query with a virtual directory.

Is there any way for BizTalk to pass the base64 data and have it converted
back to binary (either by BizTalk, the SQL Adapter, SQLXML, or any other
means)?  If so, can someone please provide some guidance on doing so.

Sean Carpenter

""WenJun Zhang[msft]"" <v-wzh...@online.microsoft.com> wrote in message

news:FfKmRyAxFHA.1024@TK2MSFTNGXA01.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"WenJun Zhang[msft]"  
View profile  
 More options Sep 30 2005, 4:18 am
Newsgroups: microsoft.public.biztalk.general
From: v-wzh...@online.microsoft.com ("WenJun Zhang[msft]")
Date: Fri, 30 Sep 2005 08:18:58 GMT
Local: Fri, Sep 30 2005 4:18 am
Subject: Re: Base64 encoded data and the SQL Adapter
Hi Sean,

I'm currently researching this issue. Please wait for my update.
Thanks.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"WenJun Zhang[msft]"  
View profile  
 More options Oct 3 2005, 2:39 am
Newsgroups: microsoft.public.biztalk.general
From: v-wzh...@online.microsoft.com ("WenJun Zhang[msft]")
Date: Mon, 03 Oct 2005 06:39:13 GMT
Local: Mon, Oct 3 2005 2:39 am
Subject: Re: Base64 encoded data and the SQL Adapter
Hi Sean,

You should check the BizTalk Server 2004 SQL Server Blob Adapter
available in www.gotdotnet.com:

BizTalk Server 2004 SQL Server Blob Adapter

http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid
=189360ED-B216-45D2-B11A-B42828A3697D

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google