.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Send group of files within dataset to WCF

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :WCF

hi iam sending data using a dataset and inside this dataset i have more than one datatable , and in one datatable i have more than one file rows, when i accept the dataset in the wcf and begin to add the data to the wcf database when it reaches to the file an error occures saying unable to chnage from string to array of byte

so what i want is how IN CODE  plz to send the file- i dont want to sen dit alone , it must be kept within the datatable  -maybe change it to other format- and i need also how to get it back from the wcf

plz if u can -dont tell me to serialize or do that - plz if u can write me some code i will be thankful .

and thanx in advance

View Complete Post

More Related Resource Links

Write XML files from DataSet

How can i write complex XML from a dataset? I use DataSet.writexml, and it returns simple XML. If i write out the schema, using DataSet.WriteXmlSchema, the schema is correct and the same as the XSD.   Example (DataSet.WriteXmlSchema)   <?xml version="1.0" standalone="yes" ?> - <xs:schema id="ISEFTSessionLoginRequest" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> - <xs:element name="ISEFTSessionLoginRequest" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> - <xs:complexType> - <xs:choice minOccurs="0" maxOccurs="unbounded"> - <xs:element name="Envelope"> - <xs:complexType> - <xs:sequence>   <xs:element name="Username" type="xs:string" minOccurs="0" />   <xs:element name="Password" type="xs:string" minOccurs="0" />   <xs:element name="ClientVersion" type="xs:string" minOccurs="0" />   <xs:element name="ClientTrackNum" type="xs:string" minOccurs="0" />   <xs:element name="SessionId" type="xs:string" minOccurs="0"

Querying a dataset filled from xml files

I am writing an application in vb.net 2008 to extract multiple xml files selected from a destined folder. App has managed to select a folder, then it reads each xml file one by one inset the data in dataset. After the app inserts xml into dataset I want to establish relationship among tables created in the data set. For more info xml has this strucure: <RedLionHeder> <Customer> <Site> <Meter1> <Meter2>......<Metern> <Channel1> <Channel2>.....<Channeln> So I want to establish relationship as Each file will have 1 customer, 1 or many sites, each site will have more than 1 meters and each meters will have more than 1 channels. If any one help me in this I would appreciate. Please not the xml files are of the size of 80 to 90Kb therefore it contains lot of data. Here is the code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        'Open the Folder Browser Dialog         'Dim dsOutput As New Data.DataSet        Dim fb As New FolderBrowserDialog        Dim count As Integer        With fb             .ShowDialo

Sharepoint 2010 WorkFlow Task AssignedTo Windows Group doesnt send email notification

Hi, Which configuration would prevent sharepoint to send a notification when a workFlow task is assigned to a Windows Group with an email ? The same task with a single User send a notification. Thanks, Patrice      

how to send data from dataset to textbox or label


i have dataset with sum(column1),sum(column2) , how can i take data in column1 into textbox1 or label1, column2 to textbox2. thank

Set up alert to send to site Members group?

I would like to set up an alert on a discussion list, to send an alert to all site members when a new discussion thread is started.  In the new alert form, in the Users field look up directory, it doesn't show site collection groups, and when I try typing it in directly into the Users field and checking, it doesn't find a match.  Is there a way to do this without making the SP group an AD group?  I would think since each individual user in a SharePoint group can have email sent to them that the group could. Thanks for any suggestions.  I don't want to have to enter in all the users individually.
There are no mistakes; every result tells you something of value about what your are trying to accomplish.

How to modify Send E-Mail subject ("Welcome to the SharePoint group") in People and Groups?


Hi All,


I am using WSS 3.0 in our application. Whenever user is added to the SharePoint Group using People and Groups page, user will be alerted using Send E-Mail option. We want to modify the subject “Welcome to the SharePoint group: Portal Visitors for site: Home”. I found that I can modify AclInv.aspx to modify the subject.


Could you please tell me is there any other way to change this text since modifying Layout pages are not recommended in our environment?


Thanks in advance.


send files from a server to a storage server on the same network


hi ,

i have a folder on the server which contains jpeg files,mp4 files and also xml files...........

i would like to transfer the folder to a centralised storage server ,i would like to pass the credentials from the web page itself,,,,,,,,

what do i use for it

the storage server is within the network and all it needs is credentials to copy the folder which i m ready to pass....but i dont know the code which has to be used......

whether to use system.io.move



please help me

thank you

How to send a dataset from javascript to server.


I tried of creating a new object in javascript.

var ds= Ajax.Web.DataSet();  

In project references i had added the Ajaxpro2.dll .

Do i need to install any  custom libraries from javascript.

SSIS Expression to send email with dataset on the Mail Subject line.



I have a task - I need to email total number of products sold on the subject line of the mail task.

I have Execute SQL task process like select count(*) from tablename. Then I need to Mail the result set like "Total products sold September 2010 : 15000" on teh subject line.

I created a variable bit i dont know how to assign it on the subject line of the Send Mail Task.

I would really appreciate if you can guide me.

Thanks for your help.


Nsoftware to send mutiple files at once


We purchased Nsoftware's ssis tasks a few months ago- what I an trying to do is send mutiple HTML files to our server at one time. I know I need to use a for each loop container, and testing this with a file task works fine, its when I drop the sftp task inside the container thats the problem. How to I set it so I can use a variable and send all the files at once??



FTP task (only send certain files)


I have an FTP task and i would like to send certain files which have a particular pattern. For example, i might be having lot of files in a directory, but i should send only certain files which meet the pattern/criteria.

For example

in the folder, lets say we have 5 files and they are

1) r_zone_13.zip
2) b_zone_241.zip
3) t_zone_98.zip
4) s_area_1234.zip
5) m_area_76.zip

Now i would have to make sure i am sending 1,2 and 3 to certain folder and 4 and 5 to certain folder through the FTP task


Adding multiple attachment (files) to a dynamic variable so it can be send to a email. VB 2010


Hello !

I need some advice on what to use for adding multiple attachment to a email. I'm using VB 2010.

First, I have a Form in my company web site to fill a reclamation ..... when you fill and send it, it convert the form into a PDF, save it in the client side "TEMP" and finally get the PDF and send it to a email..... that's perfectly  fine. I add to the form the capability of attach multiple files with file upload to the same "TEMP" and displayed in a Grid View to remove or add files and send everything to a email, the attachment capability is working. Everything is working with the PDF not the files(attachments). 

There is a way to get the multiple files from the "TEMP" folder and add it to some dynamically variable (array list, attachment collection, list collection, etc.) so all can be send to the email. I already know the way to put it into the email with the PDF. The problem is to get the files and add it to the dynamic variable and that it work with the email.

If the code is need it, let me know.


Merge two .sdf databases files, and SqlCeDataAdapter.Update(dataset) not working,

Hello You'll, I have two .sdf databases that I need to merge them. So, I loaded the data from the two files into datasets and then called the dataset.merge()function. Now, I have the merge dataset ready but I am not sure how I am going to update the sdf file from the dataset. Please help I have been trying for a while . The problem is how do I get the data in the dataset into the sdf file. I did use the SqlCeDataAdapter.update(Dataset) but I am getting the following error (" Update unable to find TableMapping['Table'] or DataTable 'Table') using VS 2010 and C# SqlCE 3.5, Thanks in advance, Sean

Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Introducing ADO.NET and the Typed DataSet

In reviewing the applications it seemed everything they were doing involved database reads, writes, and manipulation. The development staff had been reviewing the articles and code samples for ADO.NET. They had spent many years refining their existing ADO based infrastructure and perfecting their use of ADO

Create and Use a Typed DataSet by Using Visual C# .NET

This article shows you how to create and use a typed DataSet in a small Web application. Typed DataSets, which inherit from the DataSet class, create first-class members of a DataSet's DataTables and DataColumns, yielding the many benefits that come with the use of strong typing.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend